The Mobi Travel Planning API
API Endpoint
https://staging.takemobi.io/Mobi provides a REST API for accessing the travel and transportation planning services. Current version of Mobi API is running on:
You will need to use https when querying the endpoints: http queries (on port 80) are not supported at the moment.
In order for a client application to be able to access Mobi API
on behalf of it’s users, the owner of the client application must first
request access keys by sending an email to [support@takemobi.com].
Please provide your company name and application/project name. The API key needs to be included as part of the x-api-key header for all queries.
Allowed HTTP requests
-
GET - Retrieves a resource or list of resources
-
POST - Creates or updates a resource
-
PUT - Updates a resource
-
DELETE - Deletes a resource
Routing ¶
Intermodal Routes ¶
Compute a preferred set of intermodal routes connecting the origin and destination locations. The set of parameters accepted by different transportation modes are the same, though some may not be used give the different mode combinations allowed (e.g. the choices of parking providers will be skipped in transit only routes).
Headers
x-api-key: [valid_api_key_goes_here]A set of single-mode or intermodal routes from the origin to the destination.
Headers
Content-Type: application/jsonBody
{
"routes": [
{
"id": "1e182ed2-2a9c-45ce-806f-29970a785b1c",
"description": "Drive And Walk",
"segments": [
{
"index": 3,
"description": "Drive to 745 Atlantic Ave",
"type": "DRIVE",
"cost": 0.928,
"distance": 2792,
"co2": 0,
"calories": 0,
"from_location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"to_location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"lb": 556,
"ub": 556,
"start_time": 1482289608,
"end_time": 1482289608,
"parking": {
"listing_id": "Central-Parking",
"price": {
"hour": 10,
"day": 150
},
"max_duration": 7200,
"operator": {
"name": "Icon Parking",
"url": "http://www.iconparkingsystems.com/",
"phone": "877-727-5464"
},
"capacity": 200,
"available_spaces": 100,
"charger": false,
"street": false,
"indoor": false,
"rating": 4.5,
"reviews": 15,
"phone": "123-456-7890",
"photos": {
"desktop": "http://media.zipcar.com/images/model-image?model_id=155321731",
"mobile": "http://media.zipcar.com/images/model-image?model_id=155321731&mode=med",
"thumb": "http://media.zipcar.com/images/model-image?model_id=155321731&mode=thumb"
},
"hours": {
"weekday": "9am-4pm",
"weekend": "closed"
},
"instructions": "Enter from the building entrance"
},
"transit": {
"from_stop": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"stop_name": "Boylston - Outbound",
"stop_id": "70159",
"parent_station_id": "place-boyls",
"agency": {
"name": "MBTA",
"url": "http://http://www.mbta.com/",
"phone": "1-617-222-3200"
}
},
"to_stop": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"stop_name": "Boylston - Outbound",
"stop_id": "70159",
"parent_station_id": "place-boyls",
"agency": {
"name": "MBTA",
"url": "http://http://www.mbta.com/",
"phone": "1-617-222-3200"
}
},
"departure_time": 0,
"arrival_time": {},
"headsign": "Dudley",
"num_stops": 10,
"agencies": [
{
"name": "MBTA",
"url": "http://http://www.mbta.com/",
"phone": "1-617-222-3200"
}
],
"route": {
"route_id": "701",
"route_long_name": "CT1",
"route_short_name": "CT1",
"route_type": 0
},
"is_updated": false
},
"carshare": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"location_id": "96117",
"num_vehicles": 4,
"num_vehicles_available": 4,
"lowest_hourly_rate": 4,
"lowest_daily_rate": 40,
"operator": "MAVEN"
},
"bikeshare": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"station_id": "3",
"num_bikes_available": 7,
"num_bikes_disabled": 7,
"num_docks_available": 8,
"num_docks_disabled": 8,
"system": "HUBWAY"
},
"rideshare": {
"name": "uberX",
"product_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"distance": 6170,
"duration": 1080,
"low_estimate": 25,
"high_estimate": 33,
"currency": "USD",
"operator": "UBER"
},
"path": {
"distance": 100,
"time": 10,
"mean_time": 15,
"uncongested_time": 18,
"is_estimated": false,
"type": "CAR",
"polyline": "qmpaGnq|pLl@z@fA}AdAaAr@e@p@_@",
"instructions": []
}
}
],
"departure_time": 1482289608,
"arrival_time": 1482299608,
"time": 831,
"distance": 2792,
"walking_time": 35,
"walking_distance": 31,
"biking_time": 0,
"biking_distance": 0,
"driving_time": 556,
"driving_distance": 2761,
"cost": 30.92,
"mobi_score": 0,
"co2": 0,
"calories": 0,
"is_awesome": false,
"mobi_identifier": "parkandwalk",
"tags": {
"positive_tags": [],
"negative_tags": []
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"routes": {
"type": "array",
"description": "the set of routes found that meet the requirements."
}
}
}Body
Bad Request.Body
Internal Server Error.GET/intermodal/v1/routes/all{?origin,origin_name,destination,destination_name,from_stop_id,to_stop_id,modes,departure_time,arrival_time,duration_stay,wheelchair_accessible,excluded_transit_route_types,allowed_transit_route_types,excluded_transit_agency_ids,included_transit_stop,included_transit_stop_geo_coordinates,max_transit_transfers,include_infeasible_route,disable_parking,memberships,drive_preference,transit_preference,bike_preference,walk_preference,taxi_preference,bikeshare_preference,carshare_preference,scooter_preference,price_sensitivity,time_sensitivity,transfer_sensitivity,duration_margin,walkingtime_margin,bikingtime_margin,cost_margin,time_bracket_width,scroll_context,scroll_direction,save_response,street_parking,electric_charger,bikeshare_providers,return_polyline,encode_polyline,route_ordering,max_results}
The response of this action is a JSON object that encodes one or more routes. By default, the intermodal route options returned are optimized along the pareto front of two objectives, and are different for different mode combinations:
-
Drive and Park and Walk: cost (
cost_margin) and walking time (walkingtime_margin). -
Drive and Park and Transit: cost (
cost_margin) and trip duration (duration_margin). -
Drive and Park and Bikeshare: cost (
cost_margin) and the sum of walking (walkingtime_margin) and biking times (bikingtime_margin). -
Drive and Park and Rideshare: cost and trip duration (By default
cost_marginandduration_marginare not activated for this combination due to the likely large solution space). -
Transit and Walk: duration and walking time (By default
duration_marginandwalkingtime_marginare not activated for this combination due to the likely large solution space). -
Transit and Bikeshare: duration (
duration_margin) and the sum of walking (walkingtime_margin) and biking times (bikingtime_margin). -
Transit and Rideshare: cost (
cost_margin) and trip duration (duration_margin). -
Transit and Carshare: cost (
cost_margin) and trip duration (duration_margin). -
Bikeshare and Walk: duration (
duration_margin) and walking time (walkingtime_margin). -
Bikeshare and Carshare: cost (
cost_margin) and trip duration (duration_margin). -
CarShare and Walk: cost (
cost_margin) and walking time (walkingtime_margin).
The formats of responses for different transportation modes are the same, though some optional fields (parking, transit, rideshare, bikeshare and carshare) may appear in the routes of some modes.
Basic Query
For example, the following query will request routes from Arlington, MA (42.4153925,-71.1564729) to South Station in Boston (42.3519217,-71.0550703), with these constraints:
curl --location --request GET 'https://staging.takemobi.io/intermodal/v1/routes/all?origin=42.4153925,-71.1564729&destination=42.3519217,-71.0550703&departure_time=now&wheelchair_accessible=true&duration_stay=3600&memberships=ZIPCAROCCASIONAL,UBER,CHARLIECARD&duration_margin=600&walkingtime_margin=600&bikingtime_margin=600&cost_margin=10&modes=DRIVE,TAXI,TRANSIT&street_parking=false' \
--header 'x-api-key: {Put API Key here}'
-
Departure time is the present time.
-
Allow driving, taxi (rideshare) and transit modes to be used.
-
Require wheelchair accessible routes.
-
Will stay at the destination for 1 hour.
-
Street parking is not allowed to be used.
-
Has Charlie Card, Zipcar Occasional and Uber membership - note that membership are required .
-
Return routes with up to 600 seconds longer duration than optimal ones.
-
Return routes with up to 600 seconds longer walking time than optimal ones.
-
Return routes with up to 600 seconds longer biking time than optimal ones.
-
Return routes with up to $10 more expensive than optimal ones.
Margin Parameters
Different modes/mode combinations have different objectives for optimization. They are indicated in the list above. Only changes made to the relevant margin parameters (cost, duration, walkingtime and bikingtime) of the mode/mode combination’s objective will have impact on the sub-optimal solutions included in the response.
To see the impact of the margin parameters, you may first try the following TAXI+TRANSIT query from Terminal B of LGA airport (40.7118011,-74.0131196) to World Trade Center (40.7742415,-73.8715167). It has the two margin parameters related to the transit and taxi combination (duration_margin and cost_margin) set to 0,
meaning that only optimal solutions along the pareto front defined by the shortest route duration and lowest route cost would be returned.
curl --location --request GET 'https://staging.takemobi.io/intermodal/v1/routes/all?departure_time=now&destination=40.7118011,-74.0131196&memberships=UBER&origin=40.7742415,-73.8715167&modes=TAXI,TRANSIT&duration_margin=0&cost_margin=0' \
--header 'x-api-key: {Put API Key here}'
You will see a few routing options being returned using taxi only, transit only, and taxi + transit and/or transit + taxi. Next, we can send the following query with duration_margin set to 3600 and cost_margin set to 50, meaning that sub-optimal solutions with less than 3600s over the shortest trip time and less than $50 over the chpeast trip cost will be returned.
curl --location --request GET 'https://staging.takemobi.io/intermodal/v1/routes/all?departure_time=now&destination=40.7118011,-74.0131196&memberships=UBER&origin=40.7742415,-73.8715167&modes=TAXI,TRANSIT&duration_margin=3600&cost_margin=50' \
--header 'x-api-key: {Put API Key here}'
You will see significant more options being returned, primarily from the transit and taxi intermodal category due to the large candidate space available in it.
Similarly, we can run the test with the Bikeshare mode. The following query requests bikeshare routes from the Empire State Building (40.7484405,-73.9856643) to the World Trade Center (40.7118011,-74.0131196). Initially we set the two relevant margin parameters, duration_margin and walkingtime_margin to 0.
curl --location --request GET 'https://staging.takemobi.io/intermodal/v1/routes/all?duration_stay=3600&departure_time=now&destination=40.7118011,-74.0131196&origin=40.7484405,-73.98566439999999&modes=BIKESHARE&duration_margin=0&walkingtime_margin=0' \
--header 'x-api-key: {Put API Key here}'
You will often see 1 route option being returned, which dominates other alternative bikeshare routes in both trip duration and walking time. Next, we will increase the duration_margin to 300, which will return route options that are sub-optimal but no more than 300s (5 minutes) slower than the optimal solution.
curl --location --request GET 'https://staging.takemobi.io/intermodal/v1/routes/all?duration_stay=3600&departure_time=now&destination=40.7118011,-74.0131196&origin=40.7484405,-73.98566439999999&modes=BIKESHARE&walkingtime_margin=0&duration_margin=300' \
--header 'x-api-key: {Put API Key here}'
Depending on the availability of bikes at the time of your query, you will see around 10 options being returned with the query.
- origin
string(required) Example: 42.4153925,-71.1564729A comma separated string that encodes the coordinates of the trip origin.
- origin_name
string(optional) Example: originThe name of the trip origin.
- destination
string(required) Example: 42.3519217,-71.0550703A comma separated string that encodes the coordinates of the trip destination.
- destination_name
string(optional) Example: destinationThe name of the trip destination.
- from_stop_id
string(optional) Example: 70061The GTFS transit stop ID of the trip origination. If provided, we assume the rider is able to depart from the station immediately, no walking is needed.
- to_stop_id
string(optional) Example: 70077The GTFS transit stop ID of the trip destination. If provided, we assume the station is the destination, no walking beyond is needed.
- modes
string(required) Example: TRANSITThe travel modes requested for the trip. You can include multiple mode names, separated by the comma character
,, such asTRANSIT,BIKESHARE.Choices:
DRIVEBIKEWALKTRANSITCARSHAREBIKESHARETAXI- departure_time
integer(required) Example: 1482289608Specifies the desired time of departure as an integer in seconds since midnight, January 1, 1970 UTC. Only one of the departure/arrival time constraints can be set.
- arrival_time
integer(optional) Example: 1482289608Specifies the desired time of arrival as an integer in seconds since midnight, January 1, 1970 UTC. Only one of the departure/arrival time constraints can be set.
- duration_stay
integer(optional) Example: 3600specifies the desired duration of stay at the destination (in seconds). Used for calculating the cost associated with parking and carshare.
- wheelchair_accessible
boolean(optional) Default: false Example: trueSpecifies if any transit route included in the trip must be accessible (applies to both vehicles and stops).
- excluded_transit_route_types
string(optional) Example: 1,2specifies if any transit route type should be excluded from the results. We use the integer values specified in the GTFS specification for route types (https://developers.google.com/transit/gtfs/reference#routestxt). You can include multiple transit route types, separated by the comma character
,, such as1,2,3(subway, rail, bus).- allowed_transit_route_types
string(optional) Example: 1,2specifies if only certain transit route types should be considered in the results. We use the integer values specified in the GTFS specification for route types (https://developers.google.com/transit/gtfs/reference#routestxt). You can include multiple transit route types, separated by the comma character
,, such as1,2,3(subway, rail, bus).- excluded_transit_agency_ids
string(optional) Example: US_NJ_NJ_TRANSIT_BUS,US_NJ_NJ_TRANSIT_RAILspecifies if any transit agency (specified by their agency Ids) should be excluded from the routing results. You can include multiple transit agency Ids, separated by the comma character
,.- included_transit_stop
string(optional) Example: 70200specifies the stop ID of public transit stations that must be used.
- included_transit_stop_geo_coordinates
string(optional) Example: 42.35639457,-71.0624242A comma separated string that encodes the coordinates of the included pubic transit station. It is required if
incuded_transit_stopis given.- max_transit_transfers
number(optional) Example: 1specifies the maximum number of transfers allowed in any public transit routes. 0 means no transfer is permitted.
- include_infeasible_route
boolean(optional) Example: truespecifies whether the alternative routes with static schedule information will be included. The default value is false. If set to true, the infeasible routes either canceled or delayed trips would be included.
- disable_parking
boolean(optional) Example: falsespecifies whether the parking solutions, park and walk, park and ride, should be excluded. The default value is false.
- memberships
AllowedMembershipType(optional)Specifies the user holds any transit cards, passes, bikeshare or carshare or rideshare memberships. You can include multiple membership names, separated by the comma character
,, such asBLUEBIKES24,UBER,LYFT,CURB,NYC_YELLOW_CAB.- drive_preference
number(optional) Example: 5.0Specifies how much the user likes using the drive mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all.
- bike_preference
number(optional) Example: 5.0Specifies how much the user likes using the bike mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all.
- walk_preference
number(optional) Example: 5.0Specifies how much the user likes using the walk mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all.
- transit_preference
number(optional) Example: 5.0Specifies how much the user likes using the transit mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all.
- taxi_preference
number(optional) Example: 5.0Specifies how much the user likes using the taxi mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all.
- bikeshare_preference
number(optional) Example: 5.0Specifies how much the user likes using the bikeshare mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all.
- carshare_preference
number(optional) Example: 5.0Specifies how much the user likes using the carshare mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all.
- scooter_preference
number(optional) Example: 5.0Specifies how much the user likes using the scooter mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all.
- price_sensitivity
number(optional) Example: 0.1Specifies how price sensitive the user is. Allowed range is [0.0, 5.0] with 5.0 being highly sensitive to price (budget-oriented) and 0.0 being not sensitive to price at all.
- time_sensitivity
number(optional) Example: 0.1Specifies how time sensitive the user is. Allowed range is [0.0, 5.0] with 5.0 being highly sensitive to time (as fast as possible) and 0.0 being not sensitive to time at all.
- transfer_sensitivity
number(optional) Example: 0.1Specifies how transfer sensitive the user is. Allowed range is [0.0, 5.0] with 5.0 being highly sensitive to transfers (as few transfers as possible) and 0.0 being not sensitive to time at all.
- duration_margin
number(optional) Default: 0 Example: 600Specifies the maximum difference in the total durations of two routes in the response, when every other metrics of the routes being equal. Unit is second.
- walkingtime_margin
number(optional) Default: 0 Example: 600Specifies the maximum difference in the total walking durations of two routes in the response, when every other metrics of the routes being equal. Unit is second.
- bikingtime_margin
number(optional) Default: 0 Example: 600Specifies the maximum difference in the total biking durations of two routes in the response, when every other metrics of the routes being equal. Unit is second.
- cost_margin
number(optional) Default: 0 Example: 5Specifies the maximum difference in the total cost of two routes in the response, when every other metrics of the routes being equal. Unit is USD.
- time_bracket_width
number(optional) Example: 3600Specifies the maximum size of time bracket (in seconds) when searching for a sequence of routes with increasing departure times (only allowed in transit only mode).
- scroll_context
string(optional) Example: e63dcd7d-cca0-458f-9108-68cfed42786aIt is needed in rolling search, its value comes from the response in a standard query with time bracket width provided (only allowed in transit only mode).
- scroll_direction
string(optional) Example: FORWARDIt is conditionally required along with scroll context in rolling search. Its value is either FORWARD or BACKWARD. (only allowed in transit only mode).
- street_parking
boolean(optional) Default: true Example: trueSpecifies if on-street parking can be used in the routing results.
- electric_charger
boolean(optional) Default: false Example: falseSpecifies if only parking locations with electric vehicle charging devices can be used in the routing results.
- bikeshare_providers
string(optional) Example: pickebike_baselWhen it is provided, bikeshare solution will use it to filter bikeshare providers. It acceptes multiple selections, comma separated.
- return_polyline
boolean(optional) Default: true Example: trueSpecifies if the
pathfield of each routing option, which stores the polyline for the movement, should be included in the resposne.- encode_polyline
boolean(optional) Default: false Example: falseSpecifies if the encoded polyline is desired.
- save_response
boolean(optional) Default: false Example: falseSpecifies if the routing result should be cached in the server side for retrieval later. Note that even if the
return_polylinefield is set to false in the query, the server will cache the complete routing object with thepathfield.- route_ordering
string(required) Example: HIGH_MOBI_SCORESpecifies the criteria used for ordering the routes in the response. The default ordering is based on
HIGH_MOBI_SCORE.Choices:
EARLY_DEPARTURELATE_DEPARTUREEARLY_ARRIVALLATE_ARRIVALSHORT_DURATIONHIGH_MOBI_SCORE- max_results
number(optional) Default: 50 Example: 50Specifies the maximum number of routing options to be returned in the response.
Group Routing POST ¶
Compute a preferred set of intermodal routes connecting the origin and destination locations. The set of parameters accepted by different transportation modes are the same, though some may not be used give the different mode combinations allowed (e.g. the choices of parking providers will be skipped in transit only routes).
It supports all functionalities defined in GET method above.
Headers
Content-Type: application/jsonBody
{
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"from_stop_id": "70061",
"to_stop_id": "70077",
"from_station_group_id": "RE_STATION_GROUP_80",
"from_station_group_name": "Bedford Midland or Bedford St Johns",
"to_station_group_id": "RE_STATION_GROUP_86",
"to_station_group_name": "Birmingham New St, Moor St or Snow Hill",
"origin_stop_skip_walking_radius": 150,
"destination_stop_skip_walking_radius": 150,
"modes": "[\"TRANSIT\",\"DRIVE\"]",
"departure_time": 1482289608,
"arrival_time": 1482289608,
"duration_stay": 3600,
"wheelchair_accessible": true,
"excluded_transit_route_types": "1,2",
"allowed_transit_route_types": "1,2",
"excluded_transit_agency_ids": "US_NJ_NJ_TRANSIT_BUS,US_NJ_NJ_TRANSIT_RAIL",
"included_transit_stop": "70200",
"included_transit_stop_geo_coordinates": "42.35639457,-71.0624242",
"max_transit_transfers": 1,
"include_infeasible_route": true,
"disable_parking": false,
"memberships": [
"Hello, world!"
],
"drive_preference": 5,
"bike_preference": 5,
"walk_preference": 5,
"transit_preference": 5,
"taxi_preference": 5,
"bikeshare_preference": 5,
"carshare_preference": 5,
"scooter_preference": 5,
"price_sensitivity": 0.1,
"time_sensitivity": 0.1,
"transfer_sensitivity": 0.1,
"duration_margin": 600,
"walkingtime_margin": 600,
"bikingtime_margin": 600,
"cost_margin": 5,
"time_bracket_width": 3600,
"scroll_context": "e63dcd7d-cca0-458f-9108-68cfed42786a",
"scroll_direction": "FORWARD",
"street_parking": true,
"electric_charger": false,
"bikeshare_providers": "pickebike_basel",
"return_polyline": true,
"encode_polyline": false,
"save_response": false,
"route_ordering": "HIGH_MOBI_SCORE",
"max_results": 50,
"transit_trip_constraints": [
{
"departure_stop_ids": [
"[\"70061\"]"
],
"departure_stop_id": "70061",
"departure_stop_lat": 42,
"departure_stop_lng": -71,
"arrival_stop_ids": [
"[\"70077\"]"
],
"arrival_stop_id": "`70077\"",
"arrival_stop_lat": 42.1,
"arrival_stop_lng": -71.1,
"scheduled_departure_time": 1627926660,
"scheduled_arrival_time": 1627927800
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"origin": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the trip origin."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the trip destination."
},
"from_stop_id": {
"type": "string",
"description": "The GTFS transit stop ID of the trip origination. If provided, we assume the rider is able to depart from the station immediately, no walking is needed."
},
"to_stop_id": {
"type": "string",
"description": "The GTFS transit stop ID of the trip destination. If provided, we assume the station is the destination, no walking beyond is needed."
},
"from_station_group_id": {
"type": "string",
"description": "The station group ID in the station_groups.txt provided by Axon Vibe. If provided, the origin will be replaced by the underlying transit stops in routing query."
},
"from_station_group_name": {
"type": "string",
"description": "The station group ID in the station_groups.txt provided by Axon Vibe. This field is for troubleshooting purpose and is not in use."
},
"to_station_group_id": {
"type": "string",
"description": "The station group ID in the station_groups.txt provided by Axon Vibe. If provided, the destination will be replaced by the underlying transit stops in routing query."
},
"to_station_group_name": {
"type": "string",
"description": "The station group ID in the station_groups.txt provided by Axon Vibe. This field is for troubleshooting purpose and is not in use."
},
"origin_stop_skip_walking_radius": {
"type": "number",
"description": "If provided, the walk from origin segment will be omitted for the stops within the radius in transit query. The unit is meter."
},
"destination_stop_skip_walking_radius": {
"type": "number",
"description": "If provided, the walk to destination segment will be omitted for the stops within the radius in transit query. The unit is meter."
},
"modes": {
"type": "string",
"description": "The travel modes requested for the trip. You can include multiple mode names, separated by the comma character `,`, such as `TRANSIT,BIKESHARE`."
},
"departure_time": {
"type": "number",
"description": "Specifies the desired time of departure as an integer in seconds since midnight, January 1, 1970 UTC. Only one of the departure/arrival time constraints can be set."
},
"arrival_time": {
"type": "number",
"description": "Specifies the desired time of arrival as an integer in seconds since midnight, January 1, 1970 UTC. Only one of the departure/arrival time constraints can be set."
},
"duration_stay": {
"type": "number",
"description": "specifies the desired duration of stay at the destination (in seconds). Used for calculating the cost associated with parking and carshare."
},
"wheelchair_accessible": {
"type": "boolean",
"description": "Specifies if any transit route included in the trip must be accessible (applies to both vehicles and stops).",
"default": false
},
"excluded_transit_route_types": {
"type": "string",
"description": "specifies if any transit route type should be excluded from the results. We use the integer values specified in the GTFS specification for route types (https://developers.google.com/transit/gtfs/reference#routestxt). You can include multiple transit route types, separated by the comma character `,`, such as `1,2,3` (subway, rail, bus)."
},
"allowed_transit_route_types": {
"type": "string",
"description": "specifies if only certain transit route types should be considered in the results. We use the integer values specified in the GTFS specification for route types (https://developers.google.com/transit/gtfs/reference#routestxt). You can include multiple transit route types, separated by the comma character `,`, such as `1,2,3` (subway, rail, bus)."
},
"excluded_transit_agency_ids": {
"type": "string",
"description": "specifies if any transit agency (specified by their agency Ids) should be excluded from the routing results. You can include multiple transit agency Ids, separated by the comma character `,`."
},
"included_transit_stop": {
"type": "string",
"description": "specifies the stop ID of public transit stations that must be used."
},
"included_transit_stop_geo_coordinates": {
"type": "string",
"description": "A comma separated string that encodes the coordinates of the included pubic transit station. It is required if `incuded_transit_stop` is given."
},
"max_transit_transfers": {
"type": "number",
"description": "specifies the maximum number of transfers allowed in any public transit routes. 0 means no transfer is permitted."
},
"include_infeasible_route": {
"type": "boolean",
"description": "specifies whether the alternative routes with static schedule information will be included. The default value is false. If set to true, the infeasible routes either canceled or delayed trips would be included."
},
"disable_parking": {
"type": "boolean",
"description": "specifies whether the parking solutions, park and walk, park and ride, should be excluded. The default value is false."
},
"memberships": {
"type": "array",
"description": "Specifies the user holds any transit cards, passes, bikeshare or carshare or rideshare memberships. You can include multiple membership names, separated by the comma character `,`, such as `BLUEBIKES24,UBER,LYFT,CURB,NYC_YELLOW_CAB`."
},
"drive_preference": {
"type": "number",
"description": "Specifies how much the user likes using the drive mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all."
},
"bike_preference": {
"type": "number",
"description": "Specifies how much the user likes using the bike mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all."
},
"walk_preference": {
"type": "number",
"description": "Specifies how much the user likes using the walk mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all."
},
"transit_preference": {
"type": "number",
"description": "Specifies how much the user likes using the transit mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all."
},
"taxi_preference": {
"type": "number",
"description": "Specifies how much the user likes using the taxi mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all."
},
"bikeshare_preference": {
"type": "number",
"description": "Specifies how much the user likes using the bikeshare mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all."
},
"carshare_preference": {
"type": "number",
"description": "Specifies how much the user likes using the carshare mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all."
},
"scooter_preference": {
"type": "number",
"description": "Specifies how much the user likes using the scooter mode. Allowed range is [0.0, 5.0] with 5.0 being really preferred and 0.0 being not preferred at all."
},
"price_sensitivity": {
"type": "number",
"description": "Specifies how price sensitive the user is. Allowed range is [0.0, 5.0] with 5.0 being highly sensitive to price (budget-oriented) and 0.0 being not sensitive to price at all."
},
"time_sensitivity": {
"type": "number",
"description": "Specifies how time sensitive the user is. Allowed range is [0.0, 5.0] with 5.0 being highly sensitive to time (as fast as possible) and 0.0 being not sensitive to time at all."
},
"transfer_sensitivity": {
"type": "number",
"description": "Specifies how transfer sensitive the user is. Allowed range is [0.0, 5.0] with 5.0 being highly sensitive to transfers (as few transfers as possible) and 0.0 being not sensitive to time at all."
},
"duration_margin": {
"type": "number",
"description": "Specifies the maximum difference in the total durations of two routes in the response, when every other metrics of the routes being equal. Unit is second.",
"default": 0
},
"walkingtime_margin": {
"type": "number",
"description": "Specifies the maximum difference in the total walking durations of two routes in the response, when every other metrics of the routes being equal. Unit is second.",
"default": 0
},
"bikingtime_margin": {
"type": "number",
"description": "Specifies the maximum difference in the total biking durations of two routes in the response, when every other metrics of the routes being equal. Unit is second.",
"default": 0
},
"cost_margin": {
"type": "number",
"description": "Specifies the maximum difference in the total cost of two routes in the response, when every other metrics of the routes being equal. Unit is USD.",
"default": 0
},
"time_bracket_width": {
"type": "number",
"description": "Specifies the maximum size of time bracket (in seconds) when searching for a sequence of routes with increasing departure times (only allowed in transit only mode)."
},
"scroll_context": {
"type": "string",
"description": "It is needed in rolling search, its value comes from the response in a standard query with time bracket width provided (only allowed in transit only mode)."
},
"scroll_direction": {
"type": "string",
"description": "It is conditionally required along with scroll context in rolling search. Its value is either FORWARD or BACKWARD. (only allowed in transit only mode)."
},
"street_parking": {
"type": "boolean",
"description": "Specifies if on-street parking can be used in the routing results.",
"default": true
},
"electric_charger": {
"type": "boolean",
"description": "Specifies if only parking locations with electric vehicle charging devices can be used in the routing results.",
"default": false
},
"bikeshare_providers": {
"type": "string",
"description": "When it is provided, bikeshare solution will use it to filter bikeshare providers. It acceptes multiple selections, comma separated."
},
"return_polyline": {
"type": "boolean",
"description": "Specifies if the `path` field of each routing option, which stores the polyline for the movement, should be included in the resposne.",
"default": true
},
"encode_polyline": {
"type": "boolean",
"description": "Specifies if the encoded polyline is desired.",
"default": false
},
"save_response": {
"type": "boolean",
"description": "Specifies if the routing result should be cached in the server side for retrieval later. Note that even if the `return_polyline` field is set to false in the query, the server will cache the complete routing object with the `path` field.",
"default": false
},
"route_ordering": {
"type": "string",
"description": "Specifies the criteria used for ordering the routes in the response. The default ordering is based on `HIGH_MOBI_SCORE`."
},
"max_results": {
"type": "number",
"description": "Specifies the maximum number of routing options to be returned in the response.",
"default": 50
},
"transit_trip_constraints": {
"type": "array",
"description": "Specifies the maximum number of routing options to be returned in the response."
}
},
"required": [
"origin",
"destination",
"modes",
"departure_time",
"route_ordering"
]
}A set of single-mode or intermodal routes from the origin to the destination.
Headers
Content-Type: application/jsonBody
{
"routes": [
{
"id": "1e182ed2-2a9c-45ce-806f-29970a785b1c",
"description": "Drive And Walk",
"segments": [
{
"index": 3,
"description": "Drive to 745 Atlantic Ave",
"type": "DRIVE",
"cost": 0.928,
"distance": 2792,
"co2": 0,
"calories": 0,
"from_location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"to_location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"lb": 556,
"ub": 556,
"start_time": 1482289608,
"end_time": 1482289608,
"parking": {
"listing_id": "Central-Parking",
"price": {
"hour": 10,
"day": 150
},
"max_duration": 7200,
"operator": {
"name": "Icon Parking",
"url": "http://www.iconparkingsystems.com/",
"phone": "877-727-5464"
},
"capacity": 200,
"available_spaces": 100,
"charger": false,
"street": false,
"indoor": false,
"rating": 4.5,
"reviews": 15,
"phone": "123-456-7890",
"photos": {
"desktop": "http://media.zipcar.com/images/model-image?model_id=155321731",
"mobile": "http://media.zipcar.com/images/model-image?model_id=155321731&mode=med",
"thumb": "http://media.zipcar.com/images/model-image?model_id=155321731&mode=thumb"
},
"hours": {
"weekday": "9am-4pm",
"weekend": "closed"
},
"instructions": "Enter from the building entrance"
},
"transit": {
"from_stop": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"stop_name": "Boylston - Outbound",
"stop_id": "70159",
"parent_station_id": "place-boyls",
"agency": {
"name": "MBTA",
"url": "http://http://www.mbta.com/",
"phone": "1-617-222-3200"
}
},
"to_stop": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"stop_name": "Boylston - Outbound",
"stop_id": "70159",
"parent_station_id": "place-boyls",
"agency": {
"name": "MBTA",
"url": "http://http://www.mbta.com/",
"phone": "1-617-222-3200"
}
},
"departure_time": 0,
"arrival_time": {},
"headsign": "Dudley",
"num_stops": 10,
"agencies": [
{
"name": "MBTA",
"url": "http://http://www.mbta.com/",
"phone": "1-617-222-3200"
}
],
"route": {
"route_id": "701",
"route_long_name": "CT1",
"route_short_name": "CT1",
"route_type": 0
},
"is_updated": false
},
"carshare": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"location_id": "96117",
"num_vehicles": 4,
"num_vehicles_available": 4,
"lowest_hourly_rate": 4,
"lowest_daily_rate": 40,
"operator": "MAVEN"
},
"bikeshare": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"station_id": "3",
"num_bikes_available": 7,
"num_bikes_disabled": 7,
"num_docks_available": 8,
"num_docks_disabled": 8,
"system": "HUBWAY"
},
"rideshare": {
"name": "uberX",
"product_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"distance": 6170,
"duration": 1080,
"low_estimate": 25,
"high_estimate": 33,
"currency": "USD",
"operator": "UBER"
},
"path": {
"distance": 100,
"time": 10,
"mean_time": 15,
"uncongested_time": 18,
"is_estimated": false,
"type": "CAR",
"polyline": "qmpaGnq|pLl@z@fA}AdAaAr@e@p@_@",
"instructions": []
}
}
],
"departure_time": 1482289608,
"arrival_time": 1482299608,
"time": 831,
"distance": 2792,
"walking_time": 35,
"walking_distance": 31,
"biking_time": 0,
"biking_distance": 0,
"driving_time": 556,
"driving_distance": 2761,
"cost": 30.92,
"mobi_score": 0,
"co2": 0,
"calories": 0,
"is_awesome": false,
"mobi_identifier": "parkandwalk",
"tags": {
"positive_tags": [],
"negative_tags": []
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"routes": {
"type": "array",
"description": "the set of routes found that meet the requirements."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/intermodal/v1/p/routes
Saved Route ¶
Retrieve a previously saved route option.
Headers
x-api-key: [valid_api_key_goes_here]A previously saved route object.
Headers
Content-Type: application/jsonBody
{
"route": {
"id": "1e182ed2-2a9c-45ce-806f-29970a785b1c",
"description": "Drive And Walk",
"segments": [
{
"index": 3,
"description": "Drive to 745 Atlantic Ave",
"type": "DRIVE",
"cost": 0.928,
"distance": 2792,
"co2": 0,
"calories": 0,
"from_location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"to_location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"lb": 556,
"ub": 556,
"start_time": 1482289608,
"end_time": 1482289608,
"parking": {
"listing_id": "Central-Parking",
"price": {
"hour": 10,
"day": 150
},
"max_duration": 7200,
"operator": {
"name": "Icon Parking",
"url": "http://www.iconparkingsystems.com/",
"phone": "877-727-5464"
},
"capacity": 200,
"available_spaces": 100,
"charger": false,
"street": false,
"indoor": false,
"rating": 4.5,
"reviews": 15,
"phone": "123-456-7890",
"photos": {
"desktop": "http://media.zipcar.com/images/model-image?model_id=155321731",
"mobile": "http://media.zipcar.com/images/model-image?model_id=155321731&mode=med",
"thumb": "http://media.zipcar.com/images/model-image?model_id=155321731&mode=thumb"
},
"hours": {
"weekday": "9am-4pm",
"weekend": "closed"
},
"instructions": "Enter from the building entrance"
},
"transit": {
"from_stop": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"stop_name": "Boylston - Outbound",
"stop_id": "70159",
"parent_station_id": "place-boyls",
"agency": {
"name": "MBTA",
"url": "http://http://www.mbta.com/",
"phone": "1-617-222-3200"
}
},
"to_stop": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"stop_name": "Boylston - Outbound",
"stop_id": "70159",
"parent_station_id": "place-boyls",
"agency": {
"name": "MBTA",
"url": "http://http://www.mbta.com/",
"phone": "1-617-222-3200"
}
},
"departure_time": 0,
"arrival_time": {},
"headsign": "Dudley",
"num_stops": 10,
"agencies": [
{
"name": "MBTA",
"url": "http://http://www.mbta.com/",
"phone": "1-617-222-3200"
}
],
"route": {
"route_id": "701",
"route_long_name": "CT1",
"route_short_name": "CT1",
"route_type": 0
},
"is_updated": false
},
"carshare": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"location_id": "96117",
"num_vehicles": 4,
"num_vehicles_available": 4,
"lowest_hourly_rate": 4,
"lowest_daily_rate": 40,
"operator": "MAVEN"
},
"bikeshare": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"station_id": "3",
"num_bikes_available": 7,
"num_bikes_disabled": 7,
"num_docks_available": 8,
"num_docks_disabled": 8,
"system": "HUBWAY"
},
"rideshare": {
"name": "uberX",
"product_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"distance": 6170,
"duration": 1080,
"low_estimate": 25,
"high_estimate": 33,
"currency": "USD",
"operator": "UBER"
},
"path": {
"distance": 100,
"time": 10,
"mean_time": 15,
"uncongested_time": 18,
"is_estimated": false,
"type": "CAR",
"polyline": "qmpaGnq|pLl@z@fA}AdAaAr@e@p@_@",
"instructions": []
}
}
],
"departure_time": 1482289608,
"arrival_time": 1482299608,
"time": 831,
"distance": 2792,
"walking_time": 35,
"walking_distance": 31,
"biking_time": 0,
"biking_distance": 0,
"driving_time": 556,
"driving_distance": 2761,
"cost": 30.92,
"mobi_score": 0,
"co2": 0,
"calories": 0,
"is_awesome": false,
"mobi_identifier": "parkandwalk",
"tags": {
"positive_tags": [],
"negative_tags": []
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"route": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for this route."
},
"description": {
"type": "string",
"description": "a textual description for the route."
},
"segments": {
"type": "array",
"description": "contains an array of segments denoting information about each separate activity of the route."
},
"departure_time": {
"type": "number",
"description": "The actual time of departure for this route, specified as Unix time, or seconds since midnight, January 1, 1970 UTC."
},
"arrival_time": {
"type": "number",
"description": "The actual time of arrival for this route, specified as Unix time, or seconds since midnight, January 1, 1970 UTC."
},
"time": {
"type": "number",
"description": "indicates the total duration of this route in seconds."
},
"distance": {
"type": "number",
"description": "indicates the total distance of this route in meters."
},
"walking_time": {
"type": "number",
"description": "indicates the total walking duration of this route in seconds."
},
"walking_distance": {
"type": "number",
"description": "indicates the total walking distance of this route in meters."
},
"biking_time": {
"type": "number",
"description": "indicates the total biking duration of this route in seconds."
},
"biking_distance": {
"type": "number",
"description": "indicates the total biking distance of this route in meters."
},
"driving_time": {
"type": "number",
"description": "indicates the total driving duration of this route in seconds."
},
"driving_distance": {
"type": "number",
"description": "indicates the total driving distance of this route in meters."
},
"cost": {
"type": "number",
"description": "the cost of the route, including fuel, parking, transit, bikeshare, carshare and rideshare, in USD."
},
"mobi_score": {
"type": "number",
"description": "The mobi score for this route."
},
"co2": {
"type": "number",
"description": "The estimated amount of green house gas emitted by this trip (in grams)."
},
"calories": {
"type": "number",
"description": "The estimated amount of calories consumed by this trip."
},
"is_awesome": {
"type": "boolean",
"description": "if the route is determined to be `awesome` in some dimension by the backend."
},
"mobi_identifier": {
"type": "string",
"description": "a textual description for the mode of the route."
},
"tags": {
"type": "object",
"properties": {
"positive_tags": {
"type": "array",
"description": "contains an array of string denoting positive information about the route."
},
"negative_tags": {
"type": "array",
"description": "contains an array of string denoting negative information about the route."
}
},
"description": "a set of qualitative evaluation for the route."
}
},
"required": [
"id",
"description",
"time",
"distance",
"walking_time",
"walking_distance",
"biking_time",
"biking_distance",
"driving_time",
"driving_distance",
"cost"
],
"description": "the previously saved route object."
}
}
}Body
Bad Request.Body
Internal Server Error.GET/intermodal/v1/routes/saved-route{?response_id,route_id}
For example, the following query will retrieve a previously saved route with response_id=60ee7e0f-5994-4523-8057-1cdca2d78d56 and id=1864f908-b7af-426f-87b8-9862ebb1643e:
curl --location --request GET 'http://staging.takemobi.io/intermodal/v1/routes/saved-route?response_id=60ee7e0f-5994-4523-8057-1cdca2d78d56&route_id=1864f908-b7af-426f-87b8-9862ebb1643e' \
--header 'x-api-key: {Put API Key here}'
- response_id
string(required) Example: 60ee7e0f-5994-4523-8057-1cdca2d78d56A unique identifier for a routing response. Stored in each route option’s
response_idfield.- route_id
string(optional) Example: 1864f908-b7af-426f-87b8-9862ebb1643eA unique identifier for a route option. Stored in each route option’s
idfield.
Data Feed Info ¶
Data feed available in the application for route planning.
Headers
x-api-key: [valid_api_key_goes_here]An array of data feed found that meet the search region specified.
Headers
Content-Type: application/jsonBody
{
"transit": [
{
"mobi_feed_id": "US-MA-MBTA",
"feed_publisher_name": "MBTA",
"feed_publisher_url": "https://www.mbta.com/",
"feed_lang": "eng",
"default_lang": "en",
"feed_start_date": "20210531",
"feed_end_date": "20210630",
"feed_version": "465-ACC",
"feed_contact_email": "peng@takemobi.com",
"feed_contact_url": "https://support.takemobi.com"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"transit": {
"type": "array",
"description": "the set of transit feed info."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/intermodal/v1/feed-info{?lat,lng}
This query will return a list of the data feed loaded for the region (country/continent) specified by the latitude and longitude values.
- lat
number(required) Example: 42.360954the latitude for region in which data feed info should be returned.
- lng
number(required) Example: -71.101483the longitude for region in which data feed info should be returned.
Multi-to-multi summary ¶
Calculate route attributes (not the route) for each pair of locations defined in the query.
Headers
Content-Type: application/jsonBody
{
"locations": [
{
"id": "132",
"lat": 42.35031,
"lng": -71.0571,
"arrival_time": 1519765200,
"departure_time": 1519765200
}
],
"segments": [
{
"id": "3477be9a-aa62-47f1-a846-793608d1d589",
"source": "1",
"destination": "1",
"modes": "TRANSIT"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"locations": {
"type": "array",
"description": "an array of locations used in the routing query."
},
"segments": {
"type": "array",
"description": "an array of required routing segments, defined over pairs of locations."
}
},
"required": [
"locations",
"segments"
]
}A set of routes for each requested pair of locations.
Headers
Content-Type: application/jsonBody
{
"results": [
{
"segment": {
"id": "3477be9a-aa62-47f1-a846-793608d1d589",
"source": "1",
"destination": "1",
"modes": "TRANSIT"
},
"mode": "TRANSIT",
"availability": false,
"duration": 120,
"cost": 2.75
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "an array of routing results for each segment from the routing query."
}
},
"required": [
"results"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/intermodal/v1/routes/multi-to-multi
Multi-to-multi path ¶
Calculate paths (not the detailed routes) for each pair of locations defined in the query.
Headers
Content-Type: application/jsonBody
{
"locations": [
{
"id": "132",
"lat": 42.35031,
"lng": -71.0571,
"arrival_time": 1519765200,
"departure_time": 1519765200
}
],
"segments": [
{
"id": "3477be9a-aa62-47f1-a846-793608d1d589",
"source": "1",
"destination": "1",
"modes": "TRANSIT"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"locations": {
"type": "array",
"description": "an array of locations used in the routing query."
},
"segments": {
"type": "array",
"description": "an array of required routing segments, defined over pairs of locations."
}
},
"required": [
"locations",
"segments"
]
}A set of routes for each requested pair of locations.
Headers
Content-Type: application/jsonBody
{
"results": [
{
"segment": {
"id": "3477be9a-aa62-47f1-a846-793608d1d589",
"source": "1",
"destination": "1",
"modes": "TRANSIT"
},
"mode": "TRANSIT",
"availability": false,
"duration": 120,
"cost": 2.75,
"polyline": "qmpaGnq|pLl@z@fA}AdAaAr@e@p@_@"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "an array of routing results for each segment from the routing query."
}
},
"required": [
"results"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/intermodal/v1/routes/multi-to-multi-path
Planning ¶
Create Problem ¶
Create a new planning problem and find the best solution for the current problem.
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem
Create Problem and Find Multiple Versions of Solution ¶
Create a new planning problem, and find the best solutions of different variations (budget, luxury, points maximizer) for it.
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Headers
Content-Type: application/jsonBody
{
"versions": [
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"versions": {
"type": "array",
"description": "a collection of different versions of itineraries created for the planning problem."
}
},
"required": [
"versions"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/versions
Replan With Modified Activity ¶
Replan with the modified version (provided in the payload) of an existing activity in the original problem, and all other activities in the original problem.
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the goal object."
},
"calendar_id": {
"type": "string",
"description": "the id of the calendar event from which this goal is generated from."
},
"name": {
"type": "string",
"description": "the name of the goal."
},
"category": {
"type": "string",
"enum": [
"FLIGHT",
"RAIL",
"OTHER",
"ACCOMMODATION",
"EXPERIENCE",
"ATTRACTION",
"TOUR"
],
"description": "the category of this activity."
},
"optional": {
"type": "boolean",
"description": "specify if the goal can be dropped from the user's plan."
},
"candidate_information": {
"type": "object",
"properties": {
"candidates": {
"type": "array",
"description": "an array of candidates that encodes the alternatives for this goal. Mutually exclusive with selection and search field."
},
"selection": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the candidate."
},
"poi_id": {
"type": "string",
"description": "a unique identifier, usually from the data source, for the candidate."
},
"index": {
"type": "number",
"description": "unique index number for the candidate."
},
"name": {
"type": "string",
"description": "the name of the candidate goal."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the price of the candidate goal, if applicable."
},
"preferred": {
"type": "boolean",
"description": "specifies if the candidate is preferred by the user."
},
"preference": {
"type": "string",
"enum": [
"MAYBE",
"INTERESTED",
"DEFINITELY"
],
"description": "the type of timing constraint for the end from this goal location. If NOT_APPLICABLE, the departure timestamp of each candidate goal is ignored"
},
"images": {
"type": "object",
"properties": {
"small": {
"type": "string",
"description": "link to the small image."
},
"medium": {
"type": "string",
"description": "link to the medium size image."
}
},
"description": "links to images to be used for this activity."
},
"location": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the location of the candidate."
},
"start_timestamp": {
"type": "number",
"description": "the start timestamp of the candidate, used in conjunction with the `start_constraint_type` property of its parent Goal object."
},
"end_timestamp": {
"type": "number",
"description": "the end timestamp of the candidate, used in conjunction with the `end_constraint_type` property of its parent Goal object."
},
"origin": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the origin of the candidate. Use when the start and end locations of the candidate are different (such as flight, tour, etc.)."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the destination of the candidate. Use when the start and end locations of the candidate are different (such as flight, tour, etc.)."
},
"departure_timestamp": {
"type": "number",
"description": "the departure timestamp from the origin location, used when physical movement is involved (such as flight, rail, tour, etc.)."
},
"arrival_timestamp": {
"type": "number",
"description": "the arrival timestamp at the destination location, used when physical movement is involved (such as flight, rail, tour, etc.)."
},
"transportation": {
"type": "object",
"properties": {
"segments": {
"type": "array",
"description": "a list of transportation segments, such as a list of flights, multiple train rides."
}
},
"description": "the arrival timestamp at the destination location, used when physical movement is involved (such as flight, rail, tour, etc.)."
},
"recommendations": {
"type": "array",
"description": "a list of explanation items on why this POI is good in different contexts (For you, for your trip, for the destination, etc.)."
},
"hours": {
"type": "array",
"description": "a list of hours objects describing the hours of operation for the POI."
},
"match": {
"type": "object",
"properties": {
"context_name": {
"type": "string",
"description": "specifies the name of the candidate context."
},
"satisfied_filters": {
"type": "array",
"description": "a collection of user preferred filters that are satisfied by the destination."
},
"good_match_filters": {
"type": "array",
"description": "a collection of user preferred filters that are well supported by POIs at the destination."
},
"known_for_filters": {
"type": "array",
"description": "a collection of user preferred filters that the destination is known for."
}
},
"required": [
"context_name",
"satisfied_filters",
"good_match_filters",
"known_for_filters"
],
"description": "providing details on how well this candidate matches the provided filters."
}
},
"required": [
"id",
"index",
"name",
"preferred"
],
"description": "one candidate that has been selected for this goal. Mutually exclusive with candidates and search field."
},
"search": {
"type": "object",
"properties": {
"origin": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the origin of the search criteria. Use when the start location are relevant to the search results (such as flight, rail, tour, etc.)."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the destination of the search criteria. Use when the end location are relevant to the search results (such as flight, rail, tour, etc.)."
},
"earliest_departure_timestamp": {
"type": "number",
"description": "the lowerbound for the desired departure timestamp."
},
"latest_departure_timestamp": {
"type": "number",
"description": "the upperbound for the desired departure timestamp."
},
"earliest_arrival_timestamp": {
"type": "number",
"description": "the lowerbound for the desired arrival timestamp."
},
"latest_arrival_timestamp": {
"type": "number",
"description": "the upperbound for the desired arrival timestamp."
},
"max_connections": {
"type": "number",
"description": "the maximum number of connections. Use for transportation related search (such as flight and rail)."
},
"preferred_carriers": {
"type": "array",
"description": "a list of preferred carriers. Use for transportation related search (such as flight and rail)."
},
"max_duration": {
"type": "number",
"description": "the maximum duration (in seconds). Use for tour related search."
}
},
"description": "encodes the search criteria for the planner to identify valid candidates for fulfilling the goal (no candidates is known to the user). Mutually exclusive with candidates and search field."
}
},
"description": "specify the candidate information known by the user for the goal."
},
"allowed_incoming_modes": {
"type": "array",
"description": "specify the allowed incoming modes for going to this activity."
},
"allowed_outgoing_modes": {
"type": "array",
"description": "specify the allowed outgoing modes for leaving from this activity."
},
"duration": {
"type": "number",
"description": "the desired duration of this candidate in seconds."
},
"start_constraint_type": {
"type": "string",
"enum": [
"AT",
"NOT_LATER_THAN",
"NOT_EARLIER_THAN",
"NOT_APPLICABLE"
],
"description": "the type of timing constraint for the start at this goal location. If NOT_APPLICABLE, the arrival timestamp of each candidate goal is ignored"
},
"end_constraint_type": {
"type": "string",
"enum": [
"AT",
"NOT_LATER_THAN",
"NOT_EARLIER_THAN",
"NOT_APPLICABLE"
],
"description": "the type of timing constraint for the end from this goal location. If NOT_APPLICABLE, the departure timestamp of each candidate goal is ignored"
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of duration/departure/arrival is relaxable."
},
"explanation": {
"type": "object",
"properties": {
"descriptions": {
"type": "array",
"description": "an array of texts as contents of the explanation."
}
},
"description": "explanations related to the activity."
}
},
"required": [
"candidate_information",
"allowed_incoming_modes",
"allowed_outgoing_modes",
"relaxable"
]
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/modified-activity{?session_id,problem_id,activity_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the original planning problem.
- activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the activity that the modified one will replace.
Replan With Additional Activity ¶
Replan with the new activity provided in the payload, and all activities in the original problem.
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the goal object."
},
"calendar_id": {
"type": "string",
"description": "the id of the calendar event from which this goal is generated from."
},
"name": {
"type": "string",
"description": "the name of the goal."
},
"category": {
"type": "string",
"enum": [
"FLIGHT",
"RAIL",
"OTHER",
"ACCOMMODATION",
"EXPERIENCE",
"ATTRACTION",
"TOUR"
],
"description": "the category of this activity."
},
"optional": {
"type": "boolean",
"description": "specify if the goal can be dropped from the user's plan."
},
"candidate_information": {
"type": "object",
"properties": {
"candidates": {
"type": "array",
"description": "an array of candidates that encodes the alternatives for this goal. Mutually exclusive with selection and search field."
},
"selection": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the candidate."
},
"poi_id": {
"type": "string",
"description": "a unique identifier, usually from the data source, for the candidate."
},
"index": {
"type": "number",
"description": "unique index number for the candidate."
},
"name": {
"type": "string",
"description": "the name of the candidate goal."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the price of the candidate goal, if applicable."
},
"preferred": {
"type": "boolean",
"description": "specifies if the candidate is preferred by the user."
},
"preference": {
"type": "string",
"enum": [
"MAYBE",
"INTERESTED",
"DEFINITELY"
],
"description": "the type of timing constraint for the end from this goal location. If NOT_APPLICABLE, the departure timestamp of each candidate goal is ignored"
},
"images": {
"type": "object",
"properties": {
"small": {
"type": "string",
"description": "link to the small image."
},
"medium": {
"type": "string",
"description": "link to the medium size image."
}
},
"description": "links to images to be used for this activity."
},
"location": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the location of the candidate."
},
"start_timestamp": {
"type": "number",
"description": "the start timestamp of the candidate, used in conjunction with the `start_constraint_type` property of its parent Goal object."
},
"end_timestamp": {
"type": "number",
"description": "the end timestamp of the candidate, used in conjunction with the `end_constraint_type` property of its parent Goal object."
},
"origin": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the origin of the candidate. Use when the start and end locations of the candidate are different (such as flight, tour, etc.)."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the destination of the candidate. Use when the start and end locations of the candidate are different (such as flight, tour, etc.)."
},
"departure_timestamp": {
"type": "number",
"description": "the departure timestamp from the origin location, used when physical movement is involved (such as flight, rail, tour, etc.)."
},
"arrival_timestamp": {
"type": "number",
"description": "the arrival timestamp at the destination location, used when physical movement is involved (such as flight, rail, tour, etc.)."
},
"transportation": {
"type": "object",
"properties": {
"segments": {
"type": "array",
"description": "a list of transportation segments, such as a list of flights, multiple train rides."
}
},
"description": "the arrival timestamp at the destination location, used when physical movement is involved (such as flight, rail, tour, etc.)."
},
"recommendations": {
"type": "array",
"description": "a list of explanation items on why this POI is good in different contexts (For you, for your trip, for the destination, etc.)."
},
"hours": {
"type": "array",
"description": "a list of hours objects describing the hours of operation for the POI."
},
"match": {
"type": "object",
"properties": {
"context_name": {
"type": "string",
"description": "specifies the name of the candidate context."
},
"satisfied_filters": {
"type": "array",
"description": "a collection of user preferred filters that are satisfied by the destination."
},
"good_match_filters": {
"type": "array",
"description": "a collection of user preferred filters that are well supported by POIs at the destination."
},
"known_for_filters": {
"type": "array",
"description": "a collection of user preferred filters that the destination is known for."
}
},
"required": [
"context_name",
"satisfied_filters",
"good_match_filters",
"known_for_filters"
],
"description": "providing details on how well this candidate matches the provided filters."
}
},
"required": [
"id",
"index",
"name",
"preferred"
],
"description": "one candidate that has been selected for this goal. Mutually exclusive with candidates and search field."
},
"search": {
"type": "object",
"properties": {
"origin": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the origin of the search criteria. Use when the start location are relevant to the search results (such as flight, rail, tour, etc.)."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the destination of the search criteria. Use when the end location are relevant to the search results (such as flight, rail, tour, etc.)."
},
"earliest_departure_timestamp": {
"type": "number",
"description": "the lowerbound for the desired departure timestamp."
},
"latest_departure_timestamp": {
"type": "number",
"description": "the upperbound for the desired departure timestamp."
},
"earliest_arrival_timestamp": {
"type": "number",
"description": "the lowerbound for the desired arrival timestamp."
},
"latest_arrival_timestamp": {
"type": "number",
"description": "the upperbound for the desired arrival timestamp."
},
"max_connections": {
"type": "number",
"description": "the maximum number of connections. Use for transportation related search (such as flight and rail)."
},
"preferred_carriers": {
"type": "array",
"description": "a list of preferred carriers. Use for transportation related search (such as flight and rail)."
},
"max_duration": {
"type": "number",
"description": "the maximum duration (in seconds). Use for tour related search."
}
},
"description": "encodes the search criteria for the planner to identify valid candidates for fulfilling the goal (no candidates is known to the user). Mutually exclusive with candidates and search field."
}
},
"description": "specify the candidate information known by the user for the goal."
},
"allowed_incoming_modes": {
"type": "array",
"description": "specify the allowed incoming modes for going to this activity."
},
"allowed_outgoing_modes": {
"type": "array",
"description": "specify the allowed outgoing modes for leaving from this activity."
},
"duration": {
"type": "number",
"description": "the desired duration of this candidate in seconds."
},
"start_constraint_type": {
"type": "string",
"enum": [
"AT",
"NOT_LATER_THAN",
"NOT_EARLIER_THAN",
"NOT_APPLICABLE"
],
"description": "the type of timing constraint for the start at this goal location. If NOT_APPLICABLE, the arrival timestamp of each candidate goal is ignored"
},
"end_constraint_type": {
"type": "string",
"enum": [
"AT",
"NOT_LATER_THAN",
"NOT_EARLIER_THAN",
"NOT_APPLICABLE"
],
"description": "the type of timing constraint for the end from this goal location. If NOT_APPLICABLE, the departure timestamp of each candidate goal is ignored"
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of duration/departure/arrival is relaxable."
},
"explanation": {
"type": "object",
"properties": {
"descriptions": {
"type": "array",
"description": "an array of texts as contents of the explanation."
}
},
"description": "explanations related to the activity."
}
},
"required": [
"candidate_information",
"allowed_incoming_modes",
"allowed_outgoing_modes",
"relaxable"
]
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/new-activity{?session_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
Replan With Additional Activities ¶
Replan with the new activities provided in the payload, and all activities in the original problem.
Headers
Content-Type: application/jsonBody
[
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/new-activities{?session_id,activity_keyword}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
- activity_keyword
string(optional) Example: DINNERa keyword that planner will use to filter which activity this new POI is applicable to. Currently only ‘DINNER’ and ‘LUNCH’ are supported.
Replan With New Timeframes ¶
Replan with the new timeframe provided in the payload, and all activities in the original problem. Only the origin.departure_timestamp and destination.arrival_timestamp fields in the payload will be considered.
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/new-timeframes{?session_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
Replan With New Recommendations ¶
Replan with the new activities provided in the payload, and also insert saved places provided in previous iterations to the time windows provided (optional).
Headers
Content-Type: application/jsonBody
[
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/new-recommendations{?session_id,time_windows}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
- time_windows
string(optional) Example: 1594135800,1594137600,1594135800,1594137600pairs of timestamps (in seconds), separated by comma. If provided, curated activities will only be inserted into these time windows. If not provided, curated activities could be inserted into any part of the plan.
Replan With No Recommendation ¶
Replan with the new activities provided in the payload, and also remove any inserted planner recommendations.
Headers
Content-Type: application/jsonBody
[
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/no-recommendation{?session_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
Replan Transportation Option ¶
Replan with new transportation options connecting the origin and destination. Currently we support flights and rental cars (real location but the inventory and pricing are estimated). Will be adding trains and buses and possible intermodal options between them.
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/transportation{?session_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
Replan With Existing Solution ¶
Replan a previously generated solution and get an updated one.
Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/replan-with-solution{?problem_id,solution_id}
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the problem.
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the solution.
Checking Availability ¶
Evaluating the availability of activities in the provided solution.
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
]
}Headers
Content-Type: application/jsonBody
{
"updates": [
{
"activitiy_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"updated_inventory": false,
"updated_price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"updates": {
"type": "array",
"description": "the inventory or pricing updates for activities in the given solution."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/availability-checking
Alternative Availability ¶
Getting alternative availability (on different timeslot) for the selected activity from the provided solution.
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
]
}Headers
Content-Type: application/jsonBody
{
"alternatives": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"alternatives": {
"type": "array",
"description": "a set of alternative availability for the provided activity."
},
"locations": {
"type": "array",
"description": "relevant locations for the alternative activities."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/alternative-availability{?activity_id}
- activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the activity in the solution that alternatives should be looked for.
Replan to Fix Availability Issue ¶
Find an updated plan that fix all the availability issues in the current solution.
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
]
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/replan-alternative-availability
Check Session Liveness ¶
Check if there is an active session associated with the session_id (often within 15 minutes of last plan).
Headers
Content-Type: application/jsonBody
{
"session_id": "3323-4432-5456345743-f343245346",
"result": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "a unique identifier for the planning session."
},
"result": {
"type": "boolean",
"description": "a boolean flag indicating if the problem could be found in the backend."
}
},
"required": [
"session_id",
"result"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/session-liveness{?session_id}
- session_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
Check Problem Liveness ¶
Check there is a problem in the backend identifiable by the problem_id (often within 24 hours of the creation of the origin plan)
Headers
Content-Type: application/jsonBody
{
"problem_id": "3323-4432-5456345743-f343245346",
"result": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"problem_id": {
"type": "string",
"description": "a unique identifier for the planning problem."
},
"result": {
"type": "boolean",
"description": "a boolean flag indicating if the problem could be found in the backend."
}
},
"required": [
"problem_id",
"result"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/problem-liveness{?problem_id}
- problem_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the problem.
Restore Session By Problem ¶
Restore a previous planning session by reloading a previously created problem identifiable by the problem_id.
Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/restore-session-by-problem{?problem_id}
- problem_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the problem.
Restore Session By Solution ¶
Restore a previous planning session by recreating the planning session and problem using the provided solution object and mode identifier.
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
]
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/restore-session-by-solution{?mode}
- mode
AllowedProblemMode(required)the planner mode used for filtering preference options in the profile.
Save User Session ¶
Headers
Content-Type: application/jsonBody
{
"problem": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
},
"solution_response": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"create_time": 12345567,
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"problem": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
],
"description": "the problem object."
},
"solution_response": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile object."
},
"create_time": {
"type": "number",
"description": "timestamp when the session was created."
},
"trip_id": {
"type": "string",
"description": "the unique identifier of the trip."
},
"trip_name": {
"type": "string",
"description": "a custom name for the trip."
},
"trip_start_time": {
"type": "number",
"description": "timestamp for the start of the trip."
},
"trip_end_time": {
"type": "number",
"description": "timestamp for the end of the trip."
},
"trip_context": {
"type": "string",
"description": "timestamp for the context `(destination)` of the trip."
}
},
"required": [
"trip_id"
]
}Headers
Content-Type: application/jsonBody
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/session{?user_id,session_id,auto_saved}
Save a user session data (problem and solution). Planner will also attempt to location the objects using the session_id.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the session.
- auto_saved
boolean(optional) Example: falsea boolean indicator: if true then the session is saved automatically by the client, if false then the save must have been triggered by the end user.
Get User Sessions ¶
Headers
Content-Type: application/jsonBody
{
"sessions": [
{
"problem": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
},
"solution_response": {
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
},
"create_time": 12345567,
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"trip_contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"trip_context_specs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"start_timestamp": 12345567,
"end_timestamp": 12345567,
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"planned_counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"activity_specs": [
{
"category": "EXPERIENCE",
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"planned_counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"collection_specs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
}
}
]
}
]
}
],
"auto_saved": false,
"expired": false
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"sessions": {
"type": "array",
"description": "the problem object."
}
},
"required": [
"sessions"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/session{?user_id,session_id,trip_id,include_auto_saved,include_user_saved}
Retrieve the set of user session data created by the user earlier.
- user_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- trip_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the trip.
- session_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the session.
- include_auto_saved
boolean(optional) Example: truea boolean value indicating if auto saved sessions should be returned.
- include_user_saved
boolean(optional) Example: truea boolean value indicating if user saved sessions should be returned.
Get User Session Detail ¶
Headers
Content-Type: application/jsonBody
{
"sessions": [
{
"problem": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
},
"solution_response": {
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
},
"create_time": 12345567,
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"trip_contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"trip_context_specs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"start_timestamp": 12345567,
"end_timestamp": 12345567,
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"planned_counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"activity_specs": [
{
"category": "EXPERIENCE",
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"planned_counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"collection_specs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
}
}
]
}
]
}
],
"auto_saved": false,
"expired": false
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"sessions": {
"type": "array",
"description": "the problem object."
}
},
"required": [
"sessions"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/session-details{?user_id,session_id,trip_id}
Retrieve the set of user session data created by the user earlier.
- user_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- trip_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the trip.
- session_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the session.
Delete User Session ¶
Headers
Content-Type: application/jsonBody
{
"success": true
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "a boolean flag indicating if the deletion operation is successful."
}
},
"required": [
"success"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.DELETE/mobility-planner/demo/v2/session{?user_id,trip_id}
Delete the previously saved trip, identified by the trip_id.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- trip_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the trip.
Updated Booking Status ¶
Headers
Content-Type: application/jsonHeaders
Content-Type: application/jsonBody
{
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"activities": {
"type": "array",
"description": "the collection of activities in the current trip, with updated booking status."
}
},
"required": [
"activities"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/booking-status{?user_id,session_id,activity_id,booking_status}
Updated booking status of the activity identified by activity_id.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the session.
- activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the activity whose booking status needs to be updated.
- booking_status
boolean(optional) Example: falsea boolean indicator: if true then the activity is booked; if false then the activity has not been booked by the user.
Save User Progress ¶
Headers
Content-Type: application/jsonBody
{
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"selected_trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"candidate_trips": [
{
"context": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"theme": "Luxury",
"scheduled_start_time": 1519765200,
"scheduled_end_time": 1519765200,
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
],
"pois": [
"Hello, world!"
],
"explanations": [
"Hello, world!"
],
"flight_optional": false,
"flights": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"accommodations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"spec": {
"num_flights": 1,
"num_accommodations": 1,
"num_experiences": 1,
"num_dining": 1
}
}
],
"selected_filters": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile object."
},
"selected_trip_id": {
"type": "string",
"description": "the unique identifier of the selected trip."
},
"candidate_trips": {
"type": "array",
"description": "list of all sample trips returned."
},
"selected_filters": {
"type": "array",
"description": "list of all filters selected."
}
},
"required": [
"selected_trip_id",
"selected_filters"
]
}Headers
Content-Type: application/jsonBody
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/progress{?user_id}
Save a user progress data (sample trips and filters).
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
Get User Progress ¶
Headers
Content-Type: application/jsonBody
{
"progress": {
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"selected_trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"candidate_trips": [
{
"context": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"theme": "Luxury",
"scheduled_start_time": 1519765200,
"scheduled_end_time": 1519765200,
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
],
"pois": [
"Hello, world!"
],
"explanations": [
"Hello, world!"
],
"flight_optional": false,
"flights": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"accommodations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"spec": {
"num_flights": 1,
"num_accommodations": 1,
"num_experiences": 1,
"num_dining": 1
}
}
],
"selected_filters": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"progress": {
"type": "object",
"properties": {
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile object."
},
"selected_trip_id": {
"type": "string",
"description": "the unique identifier of the selected trip."
},
"candidate_trips": {
"type": "array",
"description": "list of all sample trips returned."
},
"selected_filters": {
"type": "array",
"description": "list of all filters selected."
}
},
"required": [
"selected_trip_id",
"selected_filters"
],
"description": "the problem object."
}
},
"required": [
"progress"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/progress{?user_id,selected_trip_id}
Retrieve the set of user session data created by the user earlier.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- selected_trip_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the trip selected by the user.
Export PDF Itinerary ¶
Headers
Content-Type: application/jsonBody
{
"selected_trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"url": "https://abcd.com/df54ee42-35b2-4884-a6a8-e8f935b98bd5"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"selected_trip_id": {
"type": "string",
"description": "the unique identifier of the selected trip."
},
"url": {
"type": "string",
"description": "the url linking to the page to print to pdf."
}
},
"required": [
"selected_trip_id",
"url"
]
}Headers
Content-Type: application/pdfBody
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/export/itinerary-pdf
Export the user trip to a PDF
Next Best Solution ¶
Find the next best solution for the current problem.
Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/next-solution{?session_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
Get Alternative Activities ¶
Given a solution, calculate preferred alternative activities for one inside the solution.
Headers
Content-Type: application/jsonBody
{
"alternatives": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"alternatives": {
"type": "array",
"description": "a set of alternative activities for the one specified in the solution."
},
"locations": {
"type": "array",
"description": "a set of location objects referred by the alternative activities."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/alternative-activity{?session_id,problem_id,solution_id,activity_id,max_number,sort}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the solution that alternatives should apply to.
- activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the activity that calculated alternatives will replace.
- max_number
number(required) Example: 10the max number of alternative activities to return.
- sort
enum(optional)sort the activities based on the provided criteria.
Choices:
best_matchprice_highprice_low
Select Alternative Activity and Replan ¶
Given the alternative activity for one in the existing solution, calculate a new plan.
Headers
Content-Type: application/jsonBody
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the activity."
},
"calendar_id": {
"type": "string",
"description": "a unique identifier for the corresponding calendar event."
},
"user_id": {
"type": "string",
"description": "a unique identifier for the user that this event belongs to."
},
"name": {
"type": "string",
"description": "the name of the activity."
},
"description": {
"type": "string",
"description": "the description of the activity."
},
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this activity, or the POI it is taking place at."
},
"goal": {
"type": "string",
"description": "the corresponding goal name (from the input problem, if applicable) of the activity."
},
"explanations": {
"type": "array",
"description": "a set of text that explains the rationale behind the selection of this activity."
},
"has_alternatives": {
"type": "boolean",
"description": "a boolean flag indicating if alternatives are available for the activity."
},
"start_location": {
"type": "string",
"description": "the unique identifier of the start location of the activity."
},
"end_location": {
"type": "string",
"description": "the unique identifier of the end location of the activity."
},
"images": {
"type": "object",
"properties": {
"small": {
"type": "string",
"description": "link to the small image."
},
"medium": {
"type": "string",
"description": "link to the medium size image."
}
},
"description": "links to images to be used for this activity."
},
"scheduled_start_time": {
"type": "number",
"description": "the scheduled start time of this activity, in Unix time (seconds)."
},
"scheduled_end_time": {
"type": "number",
"description": "the scheduled end time of this activity, in Unix time (seconds)."
},
"duration": {
"type": "number",
"description": "the duration of this activity, in seconds."
},
"distance": {
"type": "number",
"description": "the distance of travel in this activity, in meters."
},
"transportation": {
"type": "object",
"properties": {
"segments": {
"type": "array",
"description": "a list of transportation segments, such as a list of flights, multiple train rides."
}
},
"description": "the transportation option details, if applicable to the activity."
},
"types": {
"type": "array",
"description": "an array of the type tags of the activity."
},
"tags": {
"type": "object",
"properties": {
"positive_tags": {
"type": "array",
"description": "contains an array of string denoting positive information about the route."
},
"negative_tags": {
"type": "array",
"description": "contains an array of string denoting negative information about the route."
}
},
"description": "a set of qualitative evaluation for the route."
},
"mode": {
"type": "string",
"enum": [
"WALK",
"BIKE",
"DRIVE",
"TRANSIT",
"TAXI",
"DELIVERY"
],
"description": "the traversal mode of this activity."
},
"polyline": {
"type": "string",
"description": "a polyline representation of the trajectory of this activity."
},
"relaxation": {
"type": "object",
"properties": {
"duration": {
"type": "object",
"properties": {
"episode_id": {
"type": "string",
"description": "the id of the episode being relaxed in the planning problem."
},
"is_lb_relaxed": {
"type": "boolean",
"description": "if the lower bound of the duration is relaxed."
},
"is_ub_relaxed": {
"type": "boolean",
"description": "if the upper bound of the duration is relaxed."
},
"original_lb": {
"type": "number",
"description": "the original lower bound of the duration."
},
"relaxed_lb": {
"type": "number",
"description": "the relaxed lower bound of the duration."
},
"original_ub": {
"type": "number",
"description": "the original upper bound of the duration."
},
"relaxed_ub": {
"type": "number",
"description": "the relaxed upper bound of the duration."
}
},
"required": [
"episode_id",
"is_lb_relaxed",
"is_ub_relaxed"
],
"description": "relaxation applied to the duration of the activity."
},
"start": {
"type": "object",
"properties": {
"episode_id": {
"type": "string",
"description": "the id of the episode being relaxed in the planning problem."
},
"is_earliest_relaxed": {
"type": "boolean",
"description": "if the earliest allowed time of the instant is relaxed."
},
"is_latest_relaxed": {
"type": "boolean",
"description": "if the latest allowed time of the instant is relaxed."
},
"original_earliest": {
"type": "number",
"description": "the original earliest allowed time."
},
"relaxed_earliest": {
"type": "number",
"description": "the relaxed earliest allowed time."
},
"original_latest": {
"type": "number",
"description": "the original latest allowed time."
},
"relaxed_latest": {
"type": "number",
"description": "the relaxed latest allowed time."
}
},
"required": [
"episode_id",
"is_earliest_relaxed",
"is_latest_relaxed"
],
"description": "relaxation applied to the start time of the activity."
},
"end": {
"type": "object",
"properties": {
"episode_id": {
"type": "string",
"description": "the id of the episode being relaxed in the planning problem."
},
"is_earliest_relaxed": {
"type": "boolean",
"description": "if the earliest allowed time of the instant is relaxed."
},
"is_latest_relaxed": {
"type": "boolean",
"description": "if the latest allowed time of the instant is relaxed."
},
"original_earliest": {
"type": "number",
"description": "the original earliest allowed time."
},
"relaxed_earliest": {
"type": "number",
"description": "the relaxed earliest allowed time."
},
"original_latest": {
"type": "number",
"description": "the original latest allowed time."
},
"relaxed_latest": {
"type": "number",
"description": "the relaxed latest allowed time."
}
},
"required": [
"episode_id",
"is_earliest_relaxed",
"is_latest_relaxed"
],
"description": "relaxation applied to the end time of the activity."
}
},
"description": "relaxation required for this activity to make the plan temporally feasible."
},
"source": {
"type": "object",
"properties": {
"goal_id": {
"type": "string",
"description": "the id of the GoalItem."
},
"candidate_id": {
"type": "string",
"description": "the id of the CandidateItem."
},
"raw_content": {
"type": "string",
"description": "the json object returned from third-party APIs."
}
},
"required": [
"goal_id",
"candidate_id",
"raw_content"
],
"description": "the source of the content for this activity. Could be the Ids of the input problem goal from which this activity is generated for, or the raw content from third party API queries."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the price of this activity, if applicable."
},
"reservation": {
"type": "object",
"properties": {
"duration": {
"type": "number",
"description": "duration of the reservation, in seconds."
},
"start_time": {
"type": "number",
"description": "start time of the reservation, in Unix timestamp of seconds."
},
"end_time": {
"type": "number",
"description": "end time of the reservation, in Unix timestamp of seconds."
}
},
"description": "specify if this activity has an existing reservation."
},
"waiting": {
"type": "object",
"properties": {
"duration": {
"type": "number",
"description": "duration of the reservation, in seconds."
},
"start_time": {
"type": "number",
"description": "start time of the reservation, in Unix timestamp of seconds."
},
"end_time": {
"type": "number",
"description": "end time of the reservation, in Unix timestamp of seconds."
}
},
"description": "specify if this activity has required waiting."
},
"availability": {
"type": "array",
"description": "specify the availability of this activity, in or outside the current scheduled time windows."
},
"spec": {
"type": "object",
"properties": {
"curated": {
"type": "boolean",
"description": "a boolean flag indicating if the activity was picked by the planner instead of the request."
},
"planner_scheduled": {
"type": "boolean",
"description": "a boolean flag indicating if the schedule of this activity was picked by the planner instead of the request."
},
"previously_booked": {
"type": "boolean",
"description": "a boolean flag indicating if the activity was booked."
},
"context": {
"type": "string",
"description": "a matched context for the activity."
},
"satisfied_filters": {
"type": "array",
"description": "specify the filters satisfied by this activity."
}
},
"description": "provide more details on the specification of this activity."
},
"booked": {
"type": "boolean",
"description": "if this activity has been booked by the user."
}
},
"required": [
"id",
"name",
"start_location",
"end_location",
"scheduled_start_time",
"scheduled_end_time",
"duration",
"distance"
]
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/alternative-activity{?session_id,replan,problem_id,solution_id,activity_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
- replan
boolean(required) Example: falsea boolean value. If set to true, the planner will try to find the best plan for the alternative activity, without preserving the existing selections.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem.
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the solution that this alternative should apply to.
- activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the activity that this alternative will replace.
Get Alternative Timeslots ¶
Given a solution, calculate feasible alternative timeslots for one of its activities.
Headers
Content-Type: application/jsonBody
{
"results": [
"Hello, world!"
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "a list of alternative timeslots (in [lowerbound, upperbound] format) for the activity in the solution."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/alternative-timeslot{?session_id,problem_id,solution_id,activity_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the solution.
- activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the activity whose alternative timeslots will be calculated.
Select Alternative Timeslot and Replan ¶
Given the alternative timeslot for an activity, calculate a new plan.
Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/alternative-timeslot{?session_id,problem_id,solution_id,activity_id,earliest_time,latest_time,activity_keyword}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem.
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the solution that this alternative should apply to.
- activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the activity that this alternative will replace.
- earliest_time
number(required) Example: 1577997127the earliest start time for the specified activity.
- latest_time
number(required) Example: 1577997127the latest start time for the specified activity. It could be the same as the earliest time,
- activity_keyword
string(optional) Example: DINNERa keyword that planner will use to filter which activity this new POI is applicable to. Currently only ‘DINNER’ and ‘LUNCH’ are supported.
Get Available Timeslots ¶
Given a set of Candidate POIs, calculate available timeslots for them that would work for the current solution.
Headers
Content-Type: application/jsonBody
[
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Headers
Content-Type: application/jsonBody
{
"results": [
"Hello, world!"
],
"recommendations": [
{
"time_slot": [
1
],
"explanations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "a list of alternative timeslots (in [lowerbound, upperbound] format) for the activity in the solution."
},
"recommendations": {
"type": "array",
"description": "a list of recommended timeslots for the activity in the solution."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/available-timeslots{?session_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
Get Candidate Activities For Insertion ¶
Given a solution, calculate preferred activities that can be added between the two specified activities.
Headers
Content-Type: application/jsonBody
{
"alternatives": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"alternatives": {
"type": "array",
"description": "a set of additional activities for the gap between the activities specified in the solution."
},
"locations": {
"type": "array",
"description": "a set of location objects referred by the alternative activities."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/additional-activity{?session_id,problem_id,solution_id,preceding_activity_id,succeeding_activity_id,max_number}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the solution that alternatives should apply to.
- preceding_activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the activity that represents the start of the time gap.
- succeeding_activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the activity that represents the end of the time gap.
- max_number
number(required) Example: 10the max number of alternative activities to return.
Select Additional Activity and Replan ¶
Given the additional activity between the two specified ones, calculate a new plan.
Headers
Content-Type: application/jsonBody
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the activity."
},
"calendar_id": {
"type": "string",
"description": "a unique identifier for the corresponding calendar event."
},
"user_id": {
"type": "string",
"description": "a unique identifier for the user that this event belongs to."
},
"name": {
"type": "string",
"description": "the name of the activity."
},
"description": {
"type": "string",
"description": "the description of the activity."
},
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this activity, or the POI it is taking place at."
},
"goal": {
"type": "string",
"description": "the corresponding goal name (from the input problem, if applicable) of the activity."
},
"explanations": {
"type": "array",
"description": "a set of text that explains the rationale behind the selection of this activity."
},
"has_alternatives": {
"type": "boolean",
"description": "a boolean flag indicating if alternatives are available for the activity."
},
"start_location": {
"type": "string",
"description": "the unique identifier of the start location of the activity."
},
"end_location": {
"type": "string",
"description": "the unique identifier of the end location of the activity."
},
"images": {
"type": "object",
"properties": {
"small": {
"type": "string",
"description": "link to the small image."
},
"medium": {
"type": "string",
"description": "link to the medium size image."
}
},
"description": "links to images to be used for this activity."
},
"scheduled_start_time": {
"type": "number",
"description": "the scheduled start time of this activity, in Unix time (seconds)."
},
"scheduled_end_time": {
"type": "number",
"description": "the scheduled end time of this activity, in Unix time (seconds)."
},
"duration": {
"type": "number",
"description": "the duration of this activity, in seconds."
},
"distance": {
"type": "number",
"description": "the distance of travel in this activity, in meters."
},
"transportation": {
"type": "object",
"properties": {
"segments": {
"type": "array",
"description": "a list of transportation segments, such as a list of flights, multiple train rides."
}
},
"description": "the transportation option details, if applicable to the activity."
},
"types": {
"type": "array",
"description": "an array of the type tags of the activity."
},
"tags": {
"type": "object",
"properties": {
"positive_tags": {
"type": "array",
"description": "contains an array of string denoting positive information about the route."
},
"negative_tags": {
"type": "array",
"description": "contains an array of string denoting negative information about the route."
}
},
"description": "a set of qualitative evaluation for the route."
},
"mode": {
"type": "string",
"enum": [
"WALK",
"BIKE",
"DRIVE",
"TRANSIT",
"TAXI",
"DELIVERY"
],
"description": "the traversal mode of this activity."
},
"polyline": {
"type": "string",
"description": "a polyline representation of the trajectory of this activity."
},
"relaxation": {
"type": "object",
"properties": {
"duration": {
"type": "object",
"properties": {
"episode_id": {
"type": "string",
"description": "the id of the episode being relaxed in the planning problem."
},
"is_lb_relaxed": {
"type": "boolean",
"description": "if the lower bound of the duration is relaxed."
},
"is_ub_relaxed": {
"type": "boolean",
"description": "if the upper bound of the duration is relaxed."
},
"original_lb": {
"type": "number",
"description": "the original lower bound of the duration."
},
"relaxed_lb": {
"type": "number",
"description": "the relaxed lower bound of the duration."
},
"original_ub": {
"type": "number",
"description": "the original upper bound of the duration."
},
"relaxed_ub": {
"type": "number",
"description": "the relaxed upper bound of the duration."
}
},
"required": [
"episode_id",
"is_lb_relaxed",
"is_ub_relaxed"
],
"description": "relaxation applied to the duration of the activity."
},
"start": {
"type": "object",
"properties": {
"episode_id": {
"type": "string",
"description": "the id of the episode being relaxed in the planning problem."
},
"is_earliest_relaxed": {
"type": "boolean",
"description": "if the earliest allowed time of the instant is relaxed."
},
"is_latest_relaxed": {
"type": "boolean",
"description": "if the latest allowed time of the instant is relaxed."
},
"original_earliest": {
"type": "number",
"description": "the original earliest allowed time."
},
"relaxed_earliest": {
"type": "number",
"description": "the relaxed earliest allowed time."
},
"original_latest": {
"type": "number",
"description": "the original latest allowed time."
},
"relaxed_latest": {
"type": "number",
"description": "the relaxed latest allowed time."
}
},
"required": [
"episode_id",
"is_earliest_relaxed",
"is_latest_relaxed"
],
"description": "relaxation applied to the start time of the activity."
},
"end": {
"type": "object",
"properties": {
"episode_id": {
"type": "string",
"description": "the id of the episode being relaxed in the planning problem."
},
"is_earliest_relaxed": {
"type": "boolean",
"description": "if the earliest allowed time of the instant is relaxed."
},
"is_latest_relaxed": {
"type": "boolean",
"description": "if the latest allowed time of the instant is relaxed."
},
"original_earliest": {
"type": "number",
"description": "the original earliest allowed time."
},
"relaxed_earliest": {
"type": "number",
"description": "the relaxed earliest allowed time."
},
"original_latest": {
"type": "number",
"description": "the original latest allowed time."
},
"relaxed_latest": {
"type": "number",
"description": "the relaxed latest allowed time."
}
},
"required": [
"episode_id",
"is_earliest_relaxed",
"is_latest_relaxed"
],
"description": "relaxation applied to the end time of the activity."
}
},
"description": "relaxation required for this activity to make the plan temporally feasible."
},
"source": {
"type": "object",
"properties": {
"goal_id": {
"type": "string",
"description": "the id of the GoalItem."
},
"candidate_id": {
"type": "string",
"description": "the id of the CandidateItem."
},
"raw_content": {
"type": "string",
"description": "the json object returned from third-party APIs."
}
},
"required": [
"goal_id",
"candidate_id",
"raw_content"
],
"description": "the source of the content for this activity. Could be the Ids of the input problem goal from which this activity is generated for, or the raw content from third party API queries."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the price of this activity, if applicable."
},
"reservation": {
"type": "object",
"properties": {
"duration": {
"type": "number",
"description": "duration of the reservation, in seconds."
},
"start_time": {
"type": "number",
"description": "start time of the reservation, in Unix timestamp of seconds."
},
"end_time": {
"type": "number",
"description": "end time of the reservation, in Unix timestamp of seconds."
}
},
"description": "specify if this activity has an existing reservation."
},
"waiting": {
"type": "object",
"properties": {
"duration": {
"type": "number",
"description": "duration of the reservation, in seconds."
},
"start_time": {
"type": "number",
"description": "start time of the reservation, in Unix timestamp of seconds."
},
"end_time": {
"type": "number",
"description": "end time of the reservation, in Unix timestamp of seconds."
}
},
"description": "specify if this activity has required waiting."
},
"availability": {
"type": "array",
"description": "specify the availability of this activity, in or outside the current scheduled time windows."
},
"spec": {
"type": "object",
"properties": {
"curated": {
"type": "boolean",
"description": "a boolean flag indicating if the activity was picked by the planner instead of the request."
},
"planner_scheduled": {
"type": "boolean",
"description": "a boolean flag indicating if the schedule of this activity was picked by the planner instead of the request."
},
"previously_booked": {
"type": "boolean",
"description": "a boolean flag indicating if the activity was booked."
},
"context": {
"type": "string",
"description": "a matched context for the activity."
},
"satisfied_filters": {
"type": "array",
"description": "specify the filters satisfied by this activity."
}
},
"description": "provide more details on the specification of this activity."
},
"booked": {
"type": "boolean",
"description": "if this activity has been booked by the user."
}
},
"required": [
"id",
"name",
"start_location",
"end_location",
"scheduled_start_time",
"scheduled_end_time",
"duration",
"distance"
]
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/additional-activity{?session_id,problem_id,solution_id,preceding_activity_id,succeeding_activity_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem.
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the solution that alternatives should apply to.
- preceding_activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the activity that represents the start of the time gap.
- succeeding_activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the activity that represents the end of the time gap.
Get Alternative Transportation ¶
Given a solution and a traversal activity, calculate preferred alternative transportation for it.
Headers
Content-Type: application/jsonBody
{
"alternatives": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"alternatives": {
"type": "array",
"description": "a set of alternative transportation activities for the one specified in the solution."
},
"locations": {
"type": "array",
"description": "a set of location objects referred by the transportation activities."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/alternative-transportation{?session_id,problem_id,solution_id,activity_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the solution that alternatives should apply to.
- activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the traversal activity that calculated alternative transportation will replace.
Select Alternative Transportation and Replan ¶
Given the alternative transportation activity for one in the existing solution, calculate a new plan.
Headers
Content-Type: application/jsonBody
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the activity."
},
"calendar_id": {
"type": "string",
"description": "a unique identifier for the corresponding calendar event."
},
"user_id": {
"type": "string",
"description": "a unique identifier for the user that this event belongs to."
},
"name": {
"type": "string",
"description": "the name of the activity."
},
"description": {
"type": "string",
"description": "the description of the activity."
},
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this activity, or the POI it is taking place at."
},
"goal": {
"type": "string",
"description": "the corresponding goal name (from the input problem, if applicable) of the activity."
},
"explanations": {
"type": "array",
"description": "a set of text that explains the rationale behind the selection of this activity."
},
"has_alternatives": {
"type": "boolean",
"description": "a boolean flag indicating if alternatives are available for the activity."
},
"start_location": {
"type": "string",
"description": "the unique identifier of the start location of the activity."
},
"end_location": {
"type": "string",
"description": "the unique identifier of the end location of the activity."
},
"images": {
"type": "object",
"properties": {
"small": {
"type": "string",
"description": "link to the small image."
},
"medium": {
"type": "string",
"description": "link to the medium size image."
}
},
"description": "links to images to be used for this activity."
},
"scheduled_start_time": {
"type": "number",
"description": "the scheduled start time of this activity, in Unix time (seconds)."
},
"scheduled_end_time": {
"type": "number",
"description": "the scheduled end time of this activity, in Unix time (seconds)."
},
"duration": {
"type": "number",
"description": "the duration of this activity, in seconds."
},
"distance": {
"type": "number",
"description": "the distance of travel in this activity, in meters."
},
"transportation": {
"type": "object",
"properties": {
"segments": {
"type": "array",
"description": "a list of transportation segments, such as a list of flights, multiple train rides."
}
},
"description": "the transportation option details, if applicable to the activity."
},
"types": {
"type": "array",
"description": "an array of the type tags of the activity."
},
"tags": {
"type": "object",
"properties": {
"positive_tags": {
"type": "array",
"description": "contains an array of string denoting positive information about the route."
},
"negative_tags": {
"type": "array",
"description": "contains an array of string denoting negative information about the route."
}
},
"description": "a set of qualitative evaluation for the route."
},
"mode": {
"type": "string",
"enum": [
"WALK",
"BIKE",
"DRIVE",
"TRANSIT",
"TAXI",
"DELIVERY"
],
"description": "the traversal mode of this activity."
},
"polyline": {
"type": "string",
"description": "a polyline representation of the trajectory of this activity."
},
"relaxation": {
"type": "object",
"properties": {
"duration": {
"type": "object",
"properties": {
"episode_id": {
"type": "string",
"description": "the id of the episode being relaxed in the planning problem."
},
"is_lb_relaxed": {
"type": "boolean",
"description": "if the lower bound of the duration is relaxed."
},
"is_ub_relaxed": {
"type": "boolean",
"description": "if the upper bound of the duration is relaxed."
},
"original_lb": {
"type": "number",
"description": "the original lower bound of the duration."
},
"relaxed_lb": {
"type": "number",
"description": "the relaxed lower bound of the duration."
},
"original_ub": {
"type": "number",
"description": "the original upper bound of the duration."
},
"relaxed_ub": {
"type": "number",
"description": "the relaxed upper bound of the duration."
}
},
"required": [
"episode_id",
"is_lb_relaxed",
"is_ub_relaxed"
],
"description": "relaxation applied to the duration of the activity."
},
"start": {
"type": "object",
"properties": {
"episode_id": {
"type": "string",
"description": "the id of the episode being relaxed in the planning problem."
},
"is_earliest_relaxed": {
"type": "boolean",
"description": "if the earliest allowed time of the instant is relaxed."
},
"is_latest_relaxed": {
"type": "boolean",
"description": "if the latest allowed time of the instant is relaxed."
},
"original_earliest": {
"type": "number",
"description": "the original earliest allowed time."
},
"relaxed_earliest": {
"type": "number",
"description": "the relaxed earliest allowed time."
},
"original_latest": {
"type": "number",
"description": "the original latest allowed time."
},
"relaxed_latest": {
"type": "number",
"description": "the relaxed latest allowed time."
}
},
"required": [
"episode_id",
"is_earliest_relaxed",
"is_latest_relaxed"
],
"description": "relaxation applied to the start time of the activity."
},
"end": {
"type": "object",
"properties": {
"episode_id": {
"type": "string",
"description": "the id of the episode being relaxed in the planning problem."
},
"is_earliest_relaxed": {
"type": "boolean",
"description": "if the earliest allowed time of the instant is relaxed."
},
"is_latest_relaxed": {
"type": "boolean",
"description": "if the latest allowed time of the instant is relaxed."
},
"original_earliest": {
"type": "number",
"description": "the original earliest allowed time."
},
"relaxed_earliest": {
"type": "number",
"description": "the relaxed earliest allowed time."
},
"original_latest": {
"type": "number",
"description": "the original latest allowed time."
},
"relaxed_latest": {
"type": "number",
"description": "the relaxed latest allowed time."
}
},
"required": [
"episode_id",
"is_earliest_relaxed",
"is_latest_relaxed"
],
"description": "relaxation applied to the end time of the activity."
}
},
"description": "relaxation required for this activity to make the plan temporally feasible."
},
"source": {
"type": "object",
"properties": {
"goal_id": {
"type": "string",
"description": "the id of the GoalItem."
},
"candidate_id": {
"type": "string",
"description": "the id of the CandidateItem."
},
"raw_content": {
"type": "string",
"description": "the json object returned from third-party APIs."
}
},
"required": [
"goal_id",
"candidate_id",
"raw_content"
],
"description": "the source of the content for this activity. Could be the Ids of the input problem goal from which this activity is generated for, or the raw content from third party API queries."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the price of this activity, if applicable."
},
"reservation": {
"type": "object",
"properties": {
"duration": {
"type": "number",
"description": "duration of the reservation, in seconds."
},
"start_time": {
"type": "number",
"description": "start time of the reservation, in Unix timestamp of seconds."
},
"end_time": {
"type": "number",
"description": "end time of the reservation, in Unix timestamp of seconds."
}
},
"description": "specify if this activity has an existing reservation."
},
"waiting": {
"type": "object",
"properties": {
"duration": {
"type": "number",
"description": "duration of the reservation, in seconds."
},
"start_time": {
"type": "number",
"description": "start time of the reservation, in Unix timestamp of seconds."
},
"end_time": {
"type": "number",
"description": "end time of the reservation, in Unix timestamp of seconds."
}
},
"description": "specify if this activity has required waiting."
},
"availability": {
"type": "array",
"description": "specify the availability of this activity, in or outside the current scheduled time windows."
},
"spec": {
"type": "object",
"properties": {
"curated": {
"type": "boolean",
"description": "a boolean flag indicating if the activity was picked by the planner instead of the request."
},
"planner_scheduled": {
"type": "boolean",
"description": "a boolean flag indicating if the schedule of this activity was picked by the planner instead of the request."
},
"previously_booked": {
"type": "boolean",
"description": "a boolean flag indicating if the activity was booked."
},
"context": {
"type": "string",
"description": "a matched context for the activity."
},
"satisfied_filters": {
"type": "array",
"description": "specify the filters satisfied by this activity."
}
},
"description": "provide more details on the specification of this activity."
},
"booked": {
"type": "boolean",
"description": "if this activity has been booked by the user."
}
},
"required": [
"id",
"name",
"start_location",
"end_location",
"scheduled_start_time",
"scheduled_end_time",
"duration",
"distance"
]
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/alternative-transportation{?session_id,problem_id,solution_id,activity_id,alternative_activity_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem.
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the solution that this alternative should apply to.
- activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the transportation activity that this alternative will replace.
- alternative_activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the selected alternative activity.
Get Recommended Activities ¶
Get recommended activities for an existing itinerary and their preferred time windows.
Headers
Content-Type: application/jsonBody
{
"candidates": [
{
"candidate": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"time_windows": [
"Hello, world!"
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"candidates": {
"type": "array",
"description": "a set of recommended activities for the present itinerary."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/recommendation/activities{?session_id,problem_id,solution_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem.
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the solution that the recommendations should apply to.
Get Recommended POIs and Input Evaluation ¶
Headers
Content-Type: application/jsonBody
{
"recommendations": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"time_slots": [
{
"time_slot": [
1
],
"explanations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
]
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"recommendations": {
"type": "array",
"description": "a list of recommended POIs and their timeslot for the solution."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/recommendation/pois{?session_id}
Get recommended POIs for an existing itinerary and their preferred time windows.
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
Headers
Content-Type: application/jsonBody
{
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
}
}Headers
Content-Type: application/jsonBody
{
"recommendations": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"time_slots": [
{
"time_slot": [
1
],
"explanations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
]
}
]
}
],
"need_additional_dining_inputs": true,
"need_additional_experience_inputs": true
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"recommendations": {
"type": "array",
"description": "a list of recommended POIs and their timeslot for the solution."
},
"need_additional_dining_inputs": {
"type": "boolean",
"description": "a flag indicating if additional dining inputs are needed for a personalized plan."
},
"need_additional_experience_inputs": {
"type": "boolean",
"description": "a flag indicating if additional experience inputs are needed for a personalized plan."
}
},
"required": [
"need_additional_dining_inputs",
"need_additional_experience_inputs"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/recommendation/pois{?session_id}
Get recommended POIs as well as a flag indicating if the inputs are sufficient for a personalized plan.
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
Reschedule Activity ¶
Given an activity from the existing solution but with an updated schedule (start/end times or duration), calculate a new plan.
Headers
Content-Type: application/jsonBody
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the activity."
},
"calendar_id": {
"type": "string",
"description": "a unique identifier for the corresponding calendar event."
},
"user_id": {
"type": "string",
"description": "a unique identifier for the user that this event belongs to."
},
"name": {
"type": "string",
"description": "the name of the activity."
},
"description": {
"type": "string",
"description": "the description of the activity."
},
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this activity, or the POI it is taking place at."
},
"goal": {
"type": "string",
"description": "the corresponding goal name (from the input problem, if applicable) of the activity."
},
"explanations": {
"type": "array",
"description": "a set of text that explains the rationale behind the selection of this activity."
},
"has_alternatives": {
"type": "boolean",
"description": "a boolean flag indicating if alternatives are available for the activity."
},
"start_location": {
"type": "string",
"description": "the unique identifier of the start location of the activity."
},
"end_location": {
"type": "string",
"description": "the unique identifier of the end location of the activity."
},
"images": {
"type": "object",
"properties": {
"small": {
"type": "string",
"description": "link to the small image."
},
"medium": {
"type": "string",
"description": "link to the medium size image."
}
},
"description": "links to images to be used for this activity."
},
"scheduled_start_time": {
"type": "number",
"description": "the scheduled start time of this activity, in Unix time (seconds)."
},
"scheduled_end_time": {
"type": "number",
"description": "the scheduled end time of this activity, in Unix time (seconds)."
},
"duration": {
"type": "number",
"description": "the duration of this activity, in seconds."
},
"distance": {
"type": "number",
"description": "the distance of travel in this activity, in meters."
},
"transportation": {
"type": "object",
"properties": {
"segments": {
"type": "array",
"description": "a list of transportation segments, such as a list of flights, multiple train rides."
}
},
"description": "the transportation option details, if applicable to the activity."
},
"types": {
"type": "array",
"description": "an array of the type tags of the activity."
},
"tags": {
"type": "object",
"properties": {
"positive_tags": {
"type": "array",
"description": "contains an array of string denoting positive information about the route."
},
"negative_tags": {
"type": "array",
"description": "contains an array of string denoting negative information about the route."
}
},
"description": "a set of qualitative evaluation for the route."
},
"mode": {
"type": "string",
"enum": [
"WALK",
"BIKE",
"DRIVE",
"TRANSIT",
"TAXI",
"DELIVERY"
],
"description": "the traversal mode of this activity."
},
"polyline": {
"type": "string",
"description": "a polyline representation of the trajectory of this activity."
},
"relaxation": {
"type": "object",
"properties": {
"duration": {
"type": "object",
"properties": {
"episode_id": {
"type": "string",
"description": "the id of the episode being relaxed in the planning problem."
},
"is_lb_relaxed": {
"type": "boolean",
"description": "if the lower bound of the duration is relaxed."
},
"is_ub_relaxed": {
"type": "boolean",
"description": "if the upper bound of the duration is relaxed."
},
"original_lb": {
"type": "number",
"description": "the original lower bound of the duration."
},
"relaxed_lb": {
"type": "number",
"description": "the relaxed lower bound of the duration."
},
"original_ub": {
"type": "number",
"description": "the original upper bound of the duration."
},
"relaxed_ub": {
"type": "number",
"description": "the relaxed upper bound of the duration."
}
},
"required": [
"episode_id",
"is_lb_relaxed",
"is_ub_relaxed"
],
"description": "relaxation applied to the duration of the activity."
},
"start": {
"type": "object",
"properties": {
"episode_id": {
"type": "string",
"description": "the id of the episode being relaxed in the planning problem."
},
"is_earliest_relaxed": {
"type": "boolean",
"description": "if the earliest allowed time of the instant is relaxed."
},
"is_latest_relaxed": {
"type": "boolean",
"description": "if the latest allowed time of the instant is relaxed."
},
"original_earliest": {
"type": "number",
"description": "the original earliest allowed time."
},
"relaxed_earliest": {
"type": "number",
"description": "the relaxed earliest allowed time."
},
"original_latest": {
"type": "number",
"description": "the original latest allowed time."
},
"relaxed_latest": {
"type": "number",
"description": "the relaxed latest allowed time."
}
},
"required": [
"episode_id",
"is_earliest_relaxed",
"is_latest_relaxed"
],
"description": "relaxation applied to the start time of the activity."
},
"end": {
"type": "object",
"properties": {
"episode_id": {
"type": "string",
"description": "the id of the episode being relaxed in the planning problem."
},
"is_earliest_relaxed": {
"type": "boolean",
"description": "if the earliest allowed time of the instant is relaxed."
},
"is_latest_relaxed": {
"type": "boolean",
"description": "if the latest allowed time of the instant is relaxed."
},
"original_earliest": {
"type": "number",
"description": "the original earliest allowed time."
},
"relaxed_earliest": {
"type": "number",
"description": "the relaxed earliest allowed time."
},
"original_latest": {
"type": "number",
"description": "the original latest allowed time."
},
"relaxed_latest": {
"type": "number",
"description": "the relaxed latest allowed time."
}
},
"required": [
"episode_id",
"is_earliest_relaxed",
"is_latest_relaxed"
],
"description": "relaxation applied to the end time of the activity."
}
},
"description": "relaxation required for this activity to make the plan temporally feasible."
},
"source": {
"type": "object",
"properties": {
"goal_id": {
"type": "string",
"description": "the id of the GoalItem."
},
"candidate_id": {
"type": "string",
"description": "the id of the CandidateItem."
},
"raw_content": {
"type": "string",
"description": "the json object returned from third-party APIs."
}
},
"required": [
"goal_id",
"candidate_id",
"raw_content"
],
"description": "the source of the content for this activity. Could be the Ids of the input problem goal from which this activity is generated for, or the raw content from third party API queries."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the price of this activity, if applicable."
},
"reservation": {
"type": "object",
"properties": {
"duration": {
"type": "number",
"description": "duration of the reservation, in seconds."
},
"start_time": {
"type": "number",
"description": "start time of the reservation, in Unix timestamp of seconds."
},
"end_time": {
"type": "number",
"description": "end time of the reservation, in Unix timestamp of seconds."
}
},
"description": "specify if this activity has an existing reservation."
},
"waiting": {
"type": "object",
"properties": {
"duration": {
"type": "number",
"description": "duration of the reservation, in seconds."
},
"start_time": {
"type": "number",
"description": "start time of the reservation, in Unix timestamp of seconds."
},
"end_time": {
"type": "number",
"description": "end time of the reservation, in Unix timestamp of seconds."
}
},
"description": "specify if this activity has required waiting."
},
"availability": {
"type": "array",
"description": "specify the availability of this activity, in or outside the current scheduled time windows."
},
"spec": {
"type": "object",
"properties": {
"curated": {
"type": "boolean",
"description": "a boolean flag indicating if the activity was picked by the planner instead of the request."
},
"planner_scheduled": {
"type": "boolean",
"description": "a boolean flag indicating if the schedule of this activity was picked by the planner instead of the request."
},
"previously_booked": {
"type": "boolean",
"description": "a boolean flag indicating if the activity was booked."
},
"context": {
"type": "string",
"description": "a matched context for the activity."
},
"satisfied_filters": {
"type": "array",
"description": "specify the filters satisfied by this activity."
}
},
"description": "provide more details on the specification of this activity."
},
"booked": {
"type": "boolean",
"description": "if this activity has been booked by the user."
}
},
"required": [
"id",
"name",
"start_location",
"end_location",
"scheduled_start_time",
"scheduled_end_time",
"duration",
"distance"
]
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/reschedule-activity{?session_id,problem_id,solution_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem.
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the solution that this rescheduling should apply to.
Remove Activity and Replan ¶
Remove the specified activity in the existing solution, and calculate a new plan.
Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.DELETE/mobility-planner/demo/v2/activity{?session_id,problem_id,solution_id,activity_id,candidate_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem.
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the solution this removal will apply to.
- activity_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the activity to be removed.
- candidate_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the POI candidate to be removed.
Add Temporal Conflict and Replan ¶
Insert a new conflict of one temporal constraint and find the next best solution for the current problem.
Headers
Content-Type: application/jsonBody
{
"episode_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"duration": 150,
"timestamp": 150,
"type": "LB"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"episode_id": {
"type": "string",
"description": "a unique identifier for the episode that this constraint applies to."
},
"duration": {
"type": "number",
"description": "the duration of time set by the constraint."
},
"timestamp": {
"type": "number",
"description": "the time point set by the constraint."
},
"type": {
"type": "string",
"enum": [
"LB",
"UB"
],
"description": "specifies if the constraint applies to the lower or upper bounds."
}
},
"required": [
"episode_id",
"type"
]
}Headers
Content-Type: application/jsonBody
{
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/temporal-conflict{?session_id}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user session.
Confirm Customer Activity Selection ¶
Confirm the final activity selections by the customer.
Headers
Content-Type: application/jsonBody
{
"alternative_activities": [
{
"activitiy_id": "Hello, world!",
"alternative_activity_ids": [
"Hello, world!"
]
}
],
"selections": [
"Hello, world!"
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"alternative_activities": {
"type": "array",
"description": "alternative activities returned to the user (note: this field may contain multiple collections when a user requested alternative activities multiple times)."
},
"selections": {
"type": "array",
"description": "a collection of Ids representing the activities a user selected."
}
},
"required": [
"alternative_activities",
"selections"
]
}Headers
Content-Type: application/jsonBody
Success.Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/activity-selections{?problem_id,solution_id}
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem.
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the original planning solution.
Confirm Plan for Execution ¶
Headers
Content-Type: application/jsonBody
The plan has been confirmed.Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/solution{?problem_id,solution_id}
Confirm a solution for execution.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem created.
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the solution to confirm.
Headers
Content-Type: application/jsonBody
{
"solutions": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"solutions": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution objects found for the problem."
}
},
"required": [
"solutions"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/solution{?problem_id,solution_id}
Get previously generated solution for the given problem.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem created.
- solution_id
string(required) Example: 59392ab2-61a9-418d-924b-217ed8fd043ea unique identifier for a solution previously generated for the problem.
Get Confirmed Plan for a Problem ¶
Get confirmed solution for the given problem.
Headers
Content-Type: application/jsonBody
{
"problem_id": "4af63767-826b-4a76-af99-53e71840378d",
"solution_id": "59392ab2-61a9-418d-924b-217ed8fd043e"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"problem_id": {
"type": "string",
"description": "a unique identifier for the given planning problem."
},
"solution_id": {
"type": "string",
"description": "a unique identifier for a solution previously confirmed for the problem."
}
},
"required": [
"problem_id",
"solution_id"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/solution/confirmed{?problem_id}
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem created.
Update solution display ¶
Updated the display for a solution.
Headers
Content-Type: application/jsonBody
+ Attributes (SolutionResponse, required)Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/solution/display{?session_id,activity_id,display_flights,display_accommodations}
- session_id
string(required) Example: 3323-4432-5456345743-f343245346the id for the session.
- activity_id
string(optional) Example: 3323-4432-5456345743-f343245346the id for the activity that this display control applies to.
- display_flights
boolean(required) Example: falsea flag indicating if solution should display flights.
- display_accommodations
boolean(required) Example: falsea flag indicating if solution should display accommodations.
Commit events in Plan to Google Calendar ¶
Commit the events in the plan to the user’s Google calendar. Will redirect to Google’s authentication page to obtain access.
Headers
Content-Type: application/jsonBody
The plan has been committed successfully.Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/google/calendar/commit/{problem_id}/{solution_id}
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the planning problem created.
- solution_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the solution plan to commit.
Sync events from Google Calendar ¶
Retrieve events in the user’s Google calendar. Will redirect to Google’s authentication page to obtain access.
Headers
Content-Type: application/jsonBody
A list of events in the user's calendar that fits the time range. See https://developers.google.com/calendar/v3/reference/events for the response event format.Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/google/calendar/sync/{start}/{end}
- start
number(required) Example: 5456345743start time of the calendar event range to retrieve. It is a unix timestamp in seconds.
- end
number(required) Example: 5456345743end time of the calendar event range to retrieve. It is a unix timestamp in seconds.
Plan Profile ¶
Headers
Content-Type: application/jsonBody
{
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/profile{?user_id,mode,context}
Retrieve the planning problem profile.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique user identifier for the planning problem profile.
- mode
AllowedProblemMode(required)the planner mode used for filtering preference options in the profile.
- context
string(optional)the context used for filtering preference options in the profile.
Headers
Content-Type: application/jsonBody
{
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
}
}Headers
Content-Type: application/jsonBody
The profile has been updated.Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/profile{?user_id,mode,context}
Update the planning problem profile for the user.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique user identifier for the planning problem profile.
- mode
AllowedProblemMode(required)the planner mode used for filtering preference options in the profile.
- context
string(optional)the context used for filtering preference options in the profile.
Plan Profile Avatar ¶
Headers
Content-Type: multipart/formBody
{
"file": "PNG image file"
}Schema
{
"type": "object",
"properties": {
"file": {
"type": "string"
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}Headers
Content-Type: application/jsonBody
{
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/profile/avatar{?user_id}
Update the avatar in the planning problem profile for the user.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique user identifier for the planning problem profile.
Plan Profile Domain ¶
Headers
Content-Type: application/jsonBody
{
"domains": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"domains": {
"type": "array",
"description": "a list of preference options allowed for different categories of preferences."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/profile/domain{?mode,context,category,parent}
Retrieve allowed profile options given the planning problem mode and context.
- mode
AllowedProblemMode(required)the planner mode used for this profile domain.
- context
string(optional)the context used for this profile domain.
- category
string(optional)the category name (ACCOMMODATION, DINING, EXPERIENCE) for the profile domain.
- parent
string(optional)the parent name for this profile domain.
Plan Profile Survey Domain ¶
Headers
Content-Type: application/jsonBody
{
"surveys": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Favorite Cuisines",
"description": "What is your favorite dish?",
"image": {
"alt": "small",
"src": "http://image.io"
},
"theme": "TRAVEL",
"topic": "DINING",
"questions": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"survey_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Hello, world!",
"description": "What is your favorite dish?",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"category": "TEXT",
"type": "CATEGORY_TILES",
"answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}
],
"referenced_poi_ids": [
"Hello, world!"
],
"estimated_completion_time": 360
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"surveys": {
"type": "array",
"description": "a list of profile surveys."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/profile/domain/survey{?survey_id}
Retrieve matched (if survey_id is provided) profile surveys. If survey_id is not provided, all surveys will be returned
- survey_id
string(optional) Example: 3323-4432-5456345743-f343245346the unique identifier for a profile survey.
Plan Profile Survey Questions ¶
Headers
Content-Type: application/jsonBody
{
"questions": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"survey_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Hello, world!",
"description": "What is your favorite dish?",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"category": "TEXT",
"type": "CATEGORY_TILES",
"answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"questions": {
"type": "array",
"description": "a list of profile questions."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/profile/domain/survey/question{?question_id}
Retrieve matched (if question_id is provided) profile survey question. If question_id is not provided, all survey questions will be returned
- question_id
string(optional) Example: 3323-4432-5456345743-f343245346the unique identifier for a profile survey question.
Plan Profile Survey Anwsers ¶
Headers
Content-Type: application/jsonBody
{
"answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"answers": {
"type": "array",
"description": "a list of profile survey answers."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/profile/domain/survey/answer{?answer_id}
Retrieve matched (if answer_id is provided) profile survey answer. If answer_id is not provided, all survey answers will be returned
- answer_id
string(optional) Example: 3323-4432-5456345743-f343245346the unique identifier for a profile survey answer.
Plan Profile Survey Anwser Explanations ¶
Headers
Content-Type: application/jsonBody
{
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"explanations": {
"type": "array",
"description": "a list of profile survey answer explanations."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/profile/domain/survey/answer/explanation{?explanation_id}
Retrieve matched (if explanation_id is provided) profile survey answer explanation. If explanation_id is not provided, all survey answer explanations will be returned
- explanation_id
string(optional) Example: 3323-4432-5456345743-f343245346the unique identifier for a profile survey answer explanation.
Profile Survey Suggestions ¶
Headers
Content-Type: application/jsonBody
{
"category": "activity",
"previous_suggestions": [
"Hello, world!"
],
"session_id": "123abc"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"category": {
"type": "string",
"description": "the name for the category of suggestions."
},
"previous_suggestions": {
"type": "array",
"description": "the list of previous user selections."
},
"session_id": {
"type": "string",
"description": "the unique identifier for the user session."
}
},
"required": [
"category",
"session_id"
]
}Headers
Content-Type: application/jsonBody
{
"suggestions": [
"Hello, world!"
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"suggestions": {
"type": "array",
"description": "a list of candidate keywords in the requested category for the user to pick."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/profile/survey/suggestions
Retrieve relevant survey category values given the requested category and previous user selections.
Survey Response ¶
Headers
Content-Type: application/jsonBody
{
"survey_id": "123abc",
"answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"survey_id": {
"type": "string",
"description": "the id for the survey this response applies to."
},
"answers": {
"type": "array",
"description": "the list of answers in a survey response."
}
},
"required": [
"survey_id",
"answers"
]
}Headers
Content-Type: application/jsonBody
{
"survey_id": "123abc",
"answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"survey_id": {
"type": "string",
"description": "the id for the survey this response applies to."
},
"answers": {
"type": "array",
"description": "the list of answers in a survey response."
}
},
"required": [
"survey_id",
"answers"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/profile/survey/response?{session_id}
Save survey response.
- session_id
string(required)a unique identifier for the user session.
Headers
Content-Type: application/jsonBody
{
"id": "123abc",
"responses": [
{
"survey_id": "123abc",
"answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "the id for the survey responses."
},
"responses": {
"type": "array",
"description": "the list of survey responses."
}
},
"required": [
"id",
"responses"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/profile/survey/response?{session_id}
Retrieve previously saved survey responses.
- session_id
string(required)a unique identifier for the user session.
Plan POIs ¶
Headers
Content-Type: application/jsonBody
[
{
"destination": "Los Angeles, CA",
"destination_photo": "Cambridge",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
]
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/domain{?mode,context}
Retrieve all possible POIs that can be added to the planning problem given the specified planning problem mode and context.
- mode
AllowedProblemMode(required)the planner mode used for this domain.
- context
string(optional)only return POIs in this domain that has the specified context.
Get Context Suggestions ¶
Headers
Content-Type: application/jsonBody
{
"candidates": [
{
"name": "Sonoma_California",
"lat": 43.86231,
"lng": 18.432571,
"category": "CITY",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5"
}
],
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"candidates": {
"type": "array",
"description": "a list of candidates that fit the search criteria."
},
"contexts": {
"type": "array",
"description": "a list of context objects that fit the search criteria, if requested."
}
},
"required": [
"candidates"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/domain/contexts/suggestions{?mode,keyword,source,destination_only,return_contexts}
Retrieve the candidate contexts matching the specified search keyword.
- mode
AllowedProblemMode(required)the planner mode used for this context domain.
- keyword
string(required)the search keyword.
- source
string(optional)the source keyword. Currently supporting one ‘worldcities’, which will disable Mobi search and use the 14k world city search for matching.
- destination_only
boolean(optional) Example: falseboolean flag to indicate if only destiantion (not country or airport) should be returned.
- return_contexts
boolean(optional) Example: falseboolean flag to indicate if the complete context objects should be returned.
Get Previous Problem ¶
Headers
Content-Type: application/jsonBody
{
"problem": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
},
"solutions": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"problem": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
],
"description": "the problem object that matches the given problem id."
},
"solutions": {
"type": "array",
"description": "a list of solution objects found for the problem."
}
},
"required": [
"problem",
"solutions"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/problem{?problem_id}
Retrieve a previously solved problem and solutions objects.
- problem_id
string(required) Example: 3323-4432-5456345743-f343245346a unique problem identifier for a previously solved planning problem.
Get Example Problem ¶
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/example{?user_id,mode}
Retrieve an example problem for this user.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique user identifier for the planning problem profile.
- mode
AllowedProblemMode(optional)the planner mode constraint. The example problem will be returned only if it is compatible with the mode. If not specified, the example problem (if one exists for the profile) will be returned.
Get Example Profiles ¶
Headers
Content-Type: application/jsonBody
{
"mode": "Hello, world!",
"in_destination": true,
"blue_sky": true,
"profiles": [
{
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the requested planner mode."
},
"in_destination": {
"type": "boolean",
"description": "the requested in_destination flag."
},
"blue_sky": {
"type": "boolean",
"description": "the requested blue_sky flag."
},
"profiles": {
"type": "array",
"description": "a list of profiles compatible with the given mode and flags."
}
},
"required": [
"mode",
"in_destination",
"blue_sky",
"profiles"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/example/profiles{?mode,in_destination,blue_sky}
Retrieve all compatible profile Ids for the mode.
- mode
AllowedProblemMode(required)the planner mode constraint. The example profiles will be returned only if it is compatible with the mode.
- in_destination
boolean(optional) Example: falsea boolean flag. If set to true, only in_destination profiles will be returned.
- blue_sky
boolean(optional) Example: falsea boolean flag. If set to true, only blue_sky profiles will be returned.
Verify Service Status ¶
Check if the planning service is up and running.
Headers
Content-Type: application/jsonBody
The planning service is up and running.Body
Internal Server Error.GET/mobility-planner/demo/v2/verify
Get Alternative POIs ¶
Get suggestions for alternative POIs to a specified POI (throught the poi_id in the API call)
Headers
Content-Type: application/jsonBody
{
"recommendations": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"recommendations": {
"type": "array",
"description": "a list of suggested POIs with additional information (PoiCollectionRecommendationElement objects)."
}
},
"required": [
"recommendations"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/alternative-pois/{poi_id}{?mode,context,trip_id,user_id,max_results}
- poi_id
string(required) Example: 3323-4432-5456345743-f343245346UUID of the reference POI for which we want to get alternatives.
- mode
string(required)Planner mode, which might restrict the POI suggestions according to the business logic.
- context
string(optional)Context from which the alternative POIs will be drawn. If not specified, the context(s) associated with the reference POI will be used instead.
- trip_id
string(optional)If a
trip_idand auser_idprovided, the POIs already “saved” for this trip will be excluded from the suggestions returned.- user_id
string(optional)The
user_idis optional but needs to be provided to be able to access the trip, i.e.trip_idalone is not sufficient.- max_results
int(optional) Default: 20The maximum number of alternative POIs in the response.
Bluesky ¶
Headers
Content-Type: application/jsonBody
{
"category": [
"Hello, world!"
],
"domain": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"category": {
"type": "array",
"description": "a list of preference categories allowed."
},
"domain": {
"type": "array",
"description": "a list of preference options allowed for different categories of preferences."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Headers
Content-Type: application/jsonBody
{
"recommendations": [
{
"name": "Sights & Landmarks",
"source": "Places",
"category": "EXPERIENCE"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"recommendations": {
"type": "array",
"description": "a list of recommended preference options."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Headers
Content-Type: application/jsonBody
{
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"candidates": {
"type": "array",
"description": "collection of preference domain candidates."
}
},
"required": [
"candidates"
]
}Headers
Content-Type: application/jsonBody
{
"results": [
{
"parent": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"children": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "the list of filters the user has selected and saved."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Get All Supported Destinations - Also Known as Plan Contexts ¶
Headers
Content-Type: application/jsonBody
{
"title": "Which park do you want to visit",
"tags": [
"Hello, world!"
],
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a description of the context domain."
},
"tags": {
"type": "array",
"description": "a list of tags used for describing the candidate contexts."
},
"contexts": {
"type": "array",
"description": "a list of context objects found for the mode."
}
},
"required": [
"tags",
"contexts"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/domain/contexts{?mode}
Retrieve all supported destinations (compatible contexts) given the specified planning problem mode.
- mode
AllowedProblemMode(required)the planner mode used for this context domain.
Get Matched Destination - Also Known as Plan Context ¶
Headers
Content-Type: application/jsonBody
{
"context": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"context": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the candidate."
},
"poi_id": {
"type": "string",
"description": "a unique identifier, usually from the data source, for the candidate."
},
"index": {
"type": "number",
"description": "unique index number for the candidate."
},
"name": {
"type": "string",
"description": "the name of the candidate goal."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the price of the candidate goal, if applicable."
},
"preferred": {
"type": "boolean",
"description": "specifies if the candidate is preferred by the user."
},
"preference": {
"type": "string",
"enum": [
"MAYBE",
"INTERESTED",
"DEFINITELY"
],
"description": "the type of timing constraint for the end from this goal location. If NOT_APPLICABLE, the departure timestamp of each candidate goal is ignored"
},
"images": {
"type": "object",
"properties": {
"small": {
"type": "string",
"description": "link to the small image."
},
"medium": {
"type": "string",
"description": "link to the medium size image."
}
},
"description": "links to images to be used for this activity."
},
"location": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the location of the candidate."
},
"start_timestamp": {
"type": "number",
"description": "the start timestamp of the candidate, used in conjunction with the `start_constraint_type` property of its parent Goal object."
},
"end_timestamp": {
"type": "number",
"description": "the end timestamp of the candidate, used in conjunction with the `end_constraint_type` property of its parent Goal object."
},
"origin": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the origin of the candidate. Use when the start and end locations of the candidate are different (such as flight, tour, etc.)."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the destination of the candidate. Use when the start and end locations of the candidate are different (such as flight, tour, etc.)."
},
"departure_timestamp": {
"type": "number",
"description": "the departure timestamp from the origin location, used when physical movement is involved (such as flight, rail, tour, etc.)."
},
"arrival_timestamp": {
"type": "number",
"description": "the arrival timestamp at the destination location, used when physical movement is involved (such as flight, rail, tour, etc.)."
},
"transportation": {
"type": "object",
"properties": {
"segments": {
"type": "array",
"description": "a list of transportation segments, such as a list of flights, multiple train rides."
}
},
"description": "the arrival timestamp at the destination location, used when physical movement is involved (such as flight, rail, tour, etc.)."
},
"recommendations": {
"type": "array",
"description": "a list of explanation items on why this POI is good in different contexts (For you, for your trip, for the destination, etc.)."
},
"hours": {
"type": "array",
"description": "a list of hours objects describing the hours of operation for the POI."
},
"match": {
"type": "object",
"properties": {
"context_name": {
"type": "string",
"description": "specifies the name of the candidate context."
},
"satisfied_filters": {
"type": "array",
"description": "a collection of user preferred filters that are satisfied by the destination."
},
"good_match_filters": {
"type": "array",
"description": "a collection of user preferred filters that are well supported by POIs at the destination."
},
"known_for_filters": {
"type": "array",
"description": "a collection of user preferred filters that the destination is known for."
}
},
"required": [
"context_name",
"satisfied_filters",
"good_match_filters",
"known_for_filters"
],
"description": "providing details on how well this candidate matches the provided filters."
}
},
"required": [
"id",
"index",
"name",
"preferred"
],
"description": "a context object matching the given mode and name."
}
},
"required": [
"context"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/domain/context{?mode,name}
Retrieve matched destination given the specified planning problem mode and context name.
- mode
AllowedProblemMode(required)the planner mode used for this context domain.
- name
string(required) Example: Boston_Massachusettsthe name of the context.
Get Matched Candidate ¶
Headers
Content-Type: application/jsonBody
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"poi": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the candidate."
},
"poi_id": {
"type": "string",
"description": "a unique identifier, usually from the data source, for the candidate."
},
"index": {
"type": "number",
"description": "unique index number for the candidate."
},
"name": {
"type": "string",
"description": "the name of the candidate goal."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the price of the candidate goal, if applicable."
},
"preferred": {
"type": "boolean",
"description": "specifies if the candidate is preferred by the user."
},
"preference": {
"type": "string",
"enum": [
"MAYBE",
"INTERESTED",
"DEFINITELY"
],
"description": "the type of timing constraint for the end from this goal location. If NOT_APPLICABLE, the departure timestamp of each candidate goal is ignored"
},
"images": {
"type": "object",
"properties": {
"small": {
"type": "string",
"description": "link to the small image."
},
"medium": {
"type": "string",
"description": "link to the medium size image."
}
},
"description": "links to images to be used for this activity."
},
"location": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the location of the candidate."
},
"start_timestamp": {
"type": "number",
"description": "the start timestamp of the candidate, used in conjunction with the `start_constraint_type` property of its parent Goal object."
},
"end_timestamp": {
"type": "number",
"description": "the end timestamp of the candidate, used in conjunction with the `end_constraint_type` property of its parent Goal object."
},
"origin": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the origin of the candidate. Use when the start and end locations of the candidate are different (such as flight, tour, etc.)."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the destination of the candidate. Use when the start and end locations of the candidate are different (such as flight, tour, etc.)."
},
"departure_timestamp": {
"type": "number",
"description": "the departure timestamp from the origin location, used when physical movement is involved (such as flight, rail, tour, etc.)."
},
"arrival_timestamp": {
"type": "number",
"description": "the arrival timestamp at the destination location, used when physical movement is involved (such as flight, rail, tour, etc.)."
},
"transportation": {
"type": "object",
"properties": {
"segments": {
"type": "array",
"description": "a list of transportation segments, such as a list of flights, multiple train rides."
}
},
"description": "the arrival timestamp at the destination location, used when physical movement is involved (such as flight, rail, tour, etc.)."
},
"recommendations": {
"type": "array",
"description": "a list of explanation items on why this POI is good in different contexts (For you, for your trip, for the destination, etc.)."
},
"hours": {
"type": "array",
"description": "a list of hours objects describing the hours of operation for the POI."
},
"match": {
"type": "object",
"properties": {
"context_name": {
"type": "string",
"description": "specifies the name of the candidate context."
},
"satisfied_filters": {
"type": "array",
"description": "a collection of user preferred filters that are satisfied by the destination."
},
"good_match_filters": {
"type": "array",
"description": "a collection of user preferred filters that are well supported by POIs at the destination."
},
"known_for_filters": {
"type": "array",
"description": "a collection of user preferred filters that the destination is known for."
}
},
"required": [
"context_name",
"satisfied_filters",
"good_match_filters",
"known_for_filters"
],
"description": "providing details on how well this candidate matches the provided filters."
}
},
"required": [
"id",
"index",
"name",
"preferred"
],
"description": "a candidate that fit the id."
}
},
"required": [
"poi"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/domain/poi{?mode,id}
Retrieve the candidate item object matching the specified planning problem mode and candidate id.
- mode
AllowedProblemMode(required)the planner mode used for this context domain.
- id
string(required)the candidate id.
Get Candidate Suggestions ¶
Headers
Content-Type: application/jsonBody
{
"candidates": [
{
"name": "Sonoma_California",
"lat": 43.86231,
"lng": 18.432571,
"category": "CITY",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"candidates": {
"type": "array",
"description": "a list of candidates that fit the search criteria."
}
},
"required": [
"candidates"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/domain/poi/suggestions{?mode,context,category,keyword}
Retrieve the candidate POIs matching the specified search keyword.
- mode
AllowedProblemMode(required)the planner mode used for this context domain.
- context
string(optional)the context for the POIs.
- category
enum(required)the POI category.
Choices:
ACCOMMODATIONEXPERIENCEATTRACTIONDINING- keyword
string(required)the search keyword.
Get Filter Suggestions ¶
Headers
Content-Type: application/jsonBody
{
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"candidates": {
"type": "array",
"description": "a list of candidate filters that fit the search criteria."
}
},
"required": [
"candidates"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/domain/filter/suggestions{?mode,category,keyword,parent,session_id}
Retrieve the candidate filters matching the specified search keyword.
- mode
AllowedProblemMode(required)the planner mode used for this context domain.
- category
enum(optional)the POI category.
Choices:
ACCOMMODATIONEXPERIENCETRANSPORTATIONDINING- keyword
string(required)the search keyword.
- parent
string(optional)the parent of the returned filters.
- session_id
string(optional)the unique identifier for the current session.
Get Recommended Destinations - Also Known as Candidate Contexts ¶
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Headers
Content-Type: application/jsonBody
{
"contexts": [
"Hello, world!"
],
"scores": [
1
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"contexts": {
"type": "array",
"description": "a list of recommended destination names."
},
"scores": {
"type": "array",
"description": "a list of matching count for each category of POIs at the recommended destinations (the higher the better). Also includes `SATISFIED_SELECTIONS` and `UNSATISFIED_SELECTIONS`"
}
},
"required": [
"contexts",
"scores"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/contexts
Retrieve recommended destinations (contexts) given the selected tags in the profile encoded in the problem.
Get Nearby Destination - Also Known as Nearby Candidate Contexts ¶
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Headers
Content-Type: application/jsonBody
{
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"has_matched_destinations": true
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"contexts": {
"type": "array",
"description": "a list of nearby destination objects."
},
"has_matched_destinations": {
"type": "boolean",
"description": "a flag indicating if there are any matched destinations in the response. If set to false, it means that there is no destination matching the provided location, and all returned are close by destinations."
}
},
"required": [
"contexts",
"has_matched_destinations"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/nearby-contexts
Retrieve candidate destinations (contexts) given the selected destination in the request payload. Currently destinations within 100km will be returned
Get Candidate Destination Trips - Also Known as Candidate Context Trips ¶
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Headers
Content-Type: application/jsonBody
{
"results": [
{
"context": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"theme": "Luxury",
"scheduled_start_time": 1519765200,
"scheduled_end_time": 1519765200,
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
],
"pois": [
"Hello, world!"
],
"explanations": [
"Hello, world!"
],
"flight_optional": false,
"flights": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"accommodations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"spec": {
"num_flights": 1,
"num_accommodations": 1,
"num_experiences": 1,
"num_dining": 1
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "a list of candidate destination trips."
}
},
"required": [
"results"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/context-trips
Retrieve candidate destination (context) trips given the selected tags in the profile, and trip origin/destination/dates encoded in the problem.
Get Primary Destination Trips - Also Known as Primary Context Trips ¶
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Headers
Content-Type: application/jsonBody
{
"results": [
{
"context": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"theme": "Luxury",
"scheduled_start_time": 1519765200,
"scheduled_end_time": 1519765200,
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
],
"pois": [
"Hello, world!"
],
"explanations": [
"Hello, world!"
],
"flight_optional": false,
"flights": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"accommodations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"spec": {
"num_flights": 1,
"num_accommodations": 1,
"num_experiences": 1,
"num_dining": 1
}
}
],
"recommendations": [
{
"theme": "Best Italian",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"primary_category": "Hello, world!",
"all_poi_ids": [
"Hello, world!"
],
"types": [
"Hello, world!"
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "a list of candidate destination trips."
},
"recommendations": {
"type": "array",
"description": "a list of recommended flights, hotels, activities and dinings grouped under different themes."
}
},
"required": [
"results",
"recommendations"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/primary-context-trips{?context,include_flights,include_accommodations}
Retrieve candidate destination (context) trips given the trip destination/dates encoded in the problem.
- context
string(optional)the context used for this profile domain.
- include_flights
boolean(optional) Example: trueflag to set if flights should be included in the response.
- include_accommodations
boolean(optional) Example: trueflag to set if hotels should be included in the response.
Get Candidate Destination Themes - Also Known as Candidate Context Themes ¶
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Headers
Content-Type: application/jsonBody
{
"results": [
{
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"theme": "Best Winter Destimation"
}
],
"explanations": [
{
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "a list of candidate destination trips."
},
"explanations": {
"type": "array",
"description": "a list of explanation for each recommended context."
}
},
"required": [
"results",
"explanations"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/context-themes{?sort,max_results}
Retrieve candidate destination (context) themes given the selected tags in the profile, and trip origin/destination/dates encoded in the problem.
- sort
enum(optional)the context used for this profile domain.
Choices:
satisfied_filtersgood_match_filtersknown_for_filters- max_results
number(optional)the max number of context results that should be returned.
Get Candidate Destination Matches to Filters ¶
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Headers
Content-Type: application/jsonBody
{
"results": [
{
"filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"satisfied_contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"good_match_contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"known_for_contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "a list of candidate destinations matching the provided filters."
}
},
"required": [
"results"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/context-filter-match
Retrieve candidate destination (context) given the selected tags in the profile, and categorize them baed on the matches.
Get Recommended POIs for Destination ¶
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Headers
Content-Type: application/jsonBody
{
"pois": {
"DINING": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"EXPERIENCE": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"ACCOMMODATION": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"pois": {
"type": "object",
"properties": {
"DINING": {
"type": "array",
"description": "a list of recommended dining POIs (up to 10)."
},
"EXPERIENCE": {
"type": "array",
"description": "a list of recommended experience POIs (up to 10)."
},
"ACCOMMODATION": {
"type": "array",
"description": "a list of recommended accommodation POIs (up to 10)."
}
},
"required": [
"DINING",
"EXPERIENCE",
"ACCOMMODATION"
]
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/pois{?context}
Retrieve recommended POIs for the specified context given the selected tags in the profile encoded in the problem.
- context
string(required)the selected context for recommended POIs.
Get All POIs for Destination ¶
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Headers
Content-Type: application/jsonBody
{
"destination": "Six Flags New England",
"destination_photo": "https://image.png",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"destination": {
"type": "string",
"description": "the name of the destination."
},
"destination_photo": {
"type": "string",
"description": "the url to an image of the destination."
},
"pois": {
"type": "array",
"description": "a list of POIs."
}
},
"required": [
"destination",
"destination_photo",
"pois"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/domain{?mode,context,lat,lng,radius}
Retrieve all POIs for the specified context given the destination.
- mode
AllowedProblemMode(required)the planner mode used for this profile domain.
- context
string(optional)the context used for this profile domain.
- lat
number(optional)the reference latitude.
- lng
number(optional)the reference longitude.
- radius
number(optional)the maximum distance from the reference geolocation.
Get Recommended Themes of POIs for Destination ¶
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Headers
Content-Type: application/jsonBody
{
"results": {
"DINING": [
{
"theme": "Best Italian",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"primary_category": "Hello, world!",
"all_poi_ids": [
"Hello, world!"
],
"types": [
"Hello, world!"
]
}
],
"EXPERIENCE": [
{
"theme": "Best Italian",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"primary_category": "Hello, world!",
"all_poi_ids": [
"Hello, world!"
],
"types": [
"Hello, world!"
]
}
],
"ACCOMMODATION": [
{
"theme": "Best Italian",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"primary_category": "Hello, world!",
"all_poi_ids": [
"Hello, world!"
],
"types": [
"Hello, world!"
]
}
],
"EVENT": [
{
"theme": "Best Italian",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"primary_category": "Hello, world!",
"all_poi_ids": [
"Hello, world!"
],
"types": [
"Hello, world!"
]
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "object",
"properties": {
"DINING": {
"type": "array",
"description": "a list of recommended dining POI themes."
},
"EXPERIENCE": {
"type": "array",
"description": "a list of recommended experience POI themes."
},
"ACCOMMODATION": {
"type": "array",
"description": "a list of recommended accommodation POI themes."
},
"EVENT": {
"type": "array",
"description": "a list of recommended event POI themes."
}
},
"required": [
"DINING",
"EXPERIENCE",
"ACCOMMODATION",
"EVENT"
]
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/poi-recommendations{?context,merge_categories,category,sort,max_distance,reference_lat,reference_lng}
Retrieve recommended POIs, separated in themes, for the specified context given the selected tags in the profile encoded in the problem.
- context
string(required)the selected context for recommended POIs.
- merge_categories
boolean(required)if the different categories of POI themes should be merged into one in the response. Default is true. Please set to false if you only want POIs separated in categories.
- sort
enum(optional)sort the Best for Destination candidates based on the provided criteria.
Choices:
best_matchprice_highprice_low- category
enum(optional)if provided, only POI recommendations of the provided category will be returned.
Choices:
ACCOMMODATIONDININGEXPERIENCEEVENT- max_distance
number(optional) Example: 10000if provided, only POIs within this distance (in meters) to the center of the destination would be returned in the recommendation.
- reference_lat
number(optional) Example: 42.195if provided, only POIs within this reference latitude would be returned in the recommendation.
- reference_lng
number(optional) Example: 81.074if provided, only POIs within this reference longitude would be returned in the recommendation.
Get Summary of Recommended Themes of POIs for Destination ¶
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Headers
Content-Type: application/jsonBody
{
"results": [
{
"theme": "Best Italian",
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"selected_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "a list of recommended POIs in different categories."
}
},
"required": [
"results"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/poi-recommendation-summaries{?context,merge_categories,category,sort,max_results,trip_id,user_id}
Retrieve recommended POIs, separated in themes, for the specified context given the selected tags in the profile encoded in the problem.
- context
string(required)the selected context for recommended POIs.
- merge_categories
boolean(required)if the different categories of POI themes should be merged into one in the response. Default is true. Please set to false if you only want POIs separated in categories.
- sort
enum(optional)sort the Best for Destination candidates based on the provided criteria.
Choices:
best_matchprice_highprice_low- category
enum(optional)if provided, only POI recommendations of the provided category will be returned.
Choices:
ACCOMMODATIONDININGEXPERIENCEEVENT- max_results
string(optional)the maximum number of results for each category of recommendation.
- trip_id
string(optional)the unique identifier for the trip.
- user_id
string(optional)the unique identifier for the user.
POI Organization ¶
Headers
Content-Type: application/jsonBody
{
"pois": [
"Hello, world!"
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"pois": {
"type": "array",
"description": "a list of POI IDs."
}
},
"required": [
"pois"
]
}Headers
Content-Type: application/jsonBody
{
"results": [
{
"theme": "Chicago",
"organization": "DESTINATION",
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "a list of organized POI sets."
}
},
"required": [
"results"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/problem/poi-organization{?organization,category,trip_id,user_id}
Retrieve organized POIs
- organization
enum(optional)the organization type requested.
Choices:
ALLTYPECOLLECTIONDESTINATION- category
enum(optional)if provided, only POI recommendations of the provided category will be returned.
Choices:
ACCOMMODATIONDININGEXPERIENCEEVENT- trip_id
string(optional)the unique identifier for the trip.
- user_id
string(optional)the unique identifier for the user.
Bulk POI Details Request ¶
Headers
Content-Type: application/jsonBody
{
"pois": [
"Hello, world!"
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"pois": {
"type": "array",
"description": "a list of POI IDs."
}
},
"required": [
"pois"
]
}Headers
Content-Type: application/jsonBody
{
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"pois": {
"type": "array",
"description": "details for the requested POIs"
}
},
"required": [
"pois"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve details of POIsPOST/mobility-planner/demo/v2/domain/pois{?mode,return_abstract}
- mode
string(required)the mode (group) of the profile to be retrieved
- return_abstract
boolean(optional)boolean flag controlling if only subset of POI fields are needed in the response. Default to true.
Chat Interaction ¶
Headers
Content-Type: application/jsonBody
{
"input": "I want to go to a warm place with my family"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"input": {
"type": "string",
"description": "string input from the user."
}
},
"required": [
"input"
]
}Headers
Content-Type: application/jsonBody
{
"session_id": "3323-4432-5456345743-f343245346",
"response": "Here is a trip that may work for you",
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"problem": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
},
"selected_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"recommended_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"not_recommended_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"excluded_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"trip_start_time": 1513725841,
"trip_end_time": 1513725841,
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"trip_contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"intention": {
"origin_specified": false,
"destination_specified": false,
"budget_specified": false,
"accommodation_preference_specified": false,
"dining_preference_specified": false,
"experience_preference_specified": false,
"flight_preference_specified": false,
"have_more_preferences": true
},
"history": [
{
"role": "user",
"content": "I want to visit Australia"
}
],
"show_destinations": true,
"show_sample_trips": false,
"raw_data": [
{
"key": "trip_fact_response",
"value": "{origin_specified: false}"
}
],
"success": true
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "a textual response for the request."
},
"response": {
"type": "string",
"description": "a textual response for the request."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "detected traveler information from the input."
},
"problem": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
],
"description": "the planning problem object parsed from the chat input."
},
"selected_filters": {
"type": "array",
"description": "a list of must have trip preferences."
},
"recommended_filters": {
"type": "array",
"description": "a list of recommended trip preferences."
},
"not_recommended_filters": {
"type": "array",
"description": "a list of not recommended trip preferences."
},
"excluded_filters": {
"type": "array",
"description": "a list of must avoid trip preferences."
},
"trip_start_time": {
"type": "number",
"description": "in UNIX timestamp, the detected trip start time."
},
"trip_end_time": {
"type": "number",
"description": "in UNIX timestamp, the detected trip end time."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "parsed origin of the trip."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "parsed destination of the trip."
},
"trip_contexts": {
"type": "array",
"description": "parsed contexts for the trip."
},
"pois": {
"type": "array",
"description": "parsed desired POIs for trip."
},
"activities": {
"type": "array",
"description": "parsed desired activities for trip."
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "parsed budget information."
},
"intention": {
"type": "object",
"properties": {
"origin_specified": {
"type": "boolean",
"description": "if the user has provided trip origin."
},
"destination_specified": {
"type": "boolean",
"description": "if the user has provided trip destination."
},
"budget_specified": {
"type": "boolean",
"description": "if the user has provided budget preferences."
},
"accommodation_preference_specified": {
"type": "boolean",
"description": "if the user has provided accommodation preferences."
},
"dining_preference_specified": {
"type": "boolean",
"description": "if the user has provided dining preferences."
},
"experience_preference_specified": {
"type": "boolean",
"description": "if the user has provided experience preferences."
},
"flight_preference_specified": {
"type": "boolean",
"description": "if the user has provided flight preferences."
},
"have_more_preferences": {
"type": "boolean",
"description": "if the user has more preference to provide"
}
},
"description": "parsed intention of the users."
},
"history": {
"type": "array",
"description": "history of the chat."
},
"show_destinations": {
"type": "boolean",
"description": "a boolean flag indicating if we have enough information for destination recommendation."
},
"show_sample_trips": {
"type": "boolean",
"description": "a boolean flag indicating if we have enough information for sample trip recommendation."
},
"raw_data": {
"type": "array",
"description": "a boolean flag indicating if the query was processed successfully."
},
"success": {
"type": "boolean",
"description": "a boolean flag indicating if the query was processed successfully."
}
},
"required": [
"session_id",
"response",
"selected_filters",
"recommended_filters",
"not_recommended_filters",
"excluded_filters",
"trip_start_time",
"trip_end_time",
"show_destinations",
"show_sample_trips",
"raw_data",
"success"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/dialog/response{?mode,session_id}
Return the textual response as well as suggested itinerary planning inputs for the users’ journeys.
- mode
AllowedProblemMode(required)the planner mode used for this context domain.
- session_id
string(optional) Example: Six Flags New Englandthe UUID for the current session.
Insights ¶
Get Quiz Domain ¶
Headers
Content-Type: application/jsonBody
{
"surveys": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Favorite Cuisines",
"description": "What is your favorite dish?",
"image": {
"alt": "small",
"src": "http://image.io"
},
"theme": "TRAVEL",
"topic": "DINING",
"questions": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"survey_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Hello, world!",
"description": "What is your favorite dish?",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"category": "TEXT",
"type": "CATEGORY_TILES",
"answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}
],
"referenced_poi_ids": [
"Hello, world!"
],
"estimated_completion_time": 360
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"surveys": {
"type": "array",
"description": "a list of applicable surveys."
}
},
"required": [
"surveys"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.GET/mobility-planner/demo/v2/survey/domain{?mode,context,user_id}
Retrieve all relevant surveys.
- mode
AllowedProblemMode(required)the planner mode for filtering applicable surveys.
- context
string(optional)the context used for filtering applicable surveys.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
Add Quiz Response ¶
Headers
Content-Type: application/jsonBody
{
"survey_id": "123abc",
"answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"survey_id": {
"type": "string",
"description": "the id for the survey this response applies to."
},
"answers": {
"type": "array",
"description": "the list of answers in a survey response."
}
},
"required": [
"survey_id",
"answers"
]
}Headers
Content-Type: application/jsonBody
{
"status": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "a status message."
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/survey/response{?mode,context,user_id}
Add the user’s response to a survey.
- mode
AllowedProblemMode(required)the planner mode for filtering applicable surveys.
- context
string(optional)the context used for filtering applicable surveys.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
Add Skipped Quiz ¶
Headers
Content-Type: application/jsonBody
{
"survey_id": "123abc",
"answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"survey_id": {
"type": "string",
"description": "the id for the survey this response applies to."
},
"answers": {
"type": "array",
"description": "the list of answers in a survey response."
}
},
"required": [
"survey_id",
"answers"
]
}Headers
Content-Type: application/jsonBody
{
"status": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "a status message."
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/survey/response/skipped{?mode,context,user_id,survey_id}
Record that the user skipped a survey.
- mode
AllowedProblemMode(required)the planner mode for filtering applicable surveys.
- context
string(optional)the context used for filtering applicable surveys.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- survey_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the survey that is skipped.
Tracking ¶
Track A User Click ¶
Headers
Content-Type: application/jsonBody
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/tracking/click{?mode,url,user_id}
Add a user click to tracking.
- mode
AllowedProblemMode(required)the planner mode for filtering applicable clicks.
- url
string(optional)the outbound url the click is taking the user to.
- user_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the user if available.
Track A Detail View ¶
Headers
Content-Type: application/jsonBody
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/tracking/detail-view{?mode,category,poi_id,problem_id,url,user_id}
Add a user’s POI detail view to tracking.
- mode
AllowedProblemMode(required)the planner mode for filtering applicable clicks.
- category
string(required)the category of the POI. For example, EXPEREINCE, DINING, ACCOMMODATION, etc…
- poi_id
string(required)the unique identifier of the POI.
- problem_id
string(optional)the unique identifier of the planning problem this user is working on.
- url
string(optional)the outbound url the click is taking the user to.
- user_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the user if available.
Track A Map View ¶
Headers
Content-Type: application/jsonBody
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/tracking/map-view{?mode,problem_id,user_id}
Add a user’s map view to tracking.
- mode
AllowedProblemMode(required)the planner mode for filtering applicable clicks.
- problem_id
string(optional)the unique identifier of the planning problem this user is working on.
- user_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the user if available.
Track Source of User ¶
Headers
Content-Type: application/jsonBody
Bad Request.Body
Unauthorized.Body
Internal Server Error.POST/mobility-planner/demo/v2/tracking/source{?mode,user_id,utm_source,utm_medium,utm_campaign,location}
Add a user’s source to tracking.
- mode
AllowedProblemMode(required)the planner mode for filtering applicable clicks.
- user_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the user if available.
- utm_source
string(required) Example: travelhuba unique identifier for the source where the user came from.
- utm_medium
string(optional) Example: bannera unique identifier for the medium.
- utm_campaign
string(optional) Example: emaila unique identifier for the campaign.
- location
string(required) Example: landing_pagea unique identifier for the location where this source tracking was sent from.
Execution ¶
Status ¶
Headers
Content-Type: application/jsonBody
{
"updates": [
{
"activity_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"status": "SCHEDULED"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"updates": {
"type": "array",
"description": "an array of activity status update objects."
}
},
"required": [
"updates"
]
}Headers
Content-Type: application/jsonBody
Status update is successful.Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Update Activity StatusPOST/mobility-planner/v1/execution/status{?user_id}
Update the status of an activity in the user’s plan. If the update makes the plan infeasible, an error message will be returned.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
Headers
Content-Type: application/jsonBody
{
"status": "CREATED"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"CREATED",
"CONFIRMED",
"EXECUTING",
"DELAYED",
"INTERRUPTED",
"COMPLETED"
],
"description": "contains metadata on the request."
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Get Plan StatusGET/mobility-planner/v1/execution/status{?user_id}
Get the status of the user’s plan.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
Events ¶
Headers
Content-Type: application/jsonBody
[
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Get EventsGET/mobility-planner/v1/execution/events{?user_id,lowerbound,upperbound}
Get active events of the user within the specified time period. If no user id is given, all active events of all users within the specified time period wil be returned.
For an event, e, in the user’s calendar, it will be returned if the following criteria are satisfied:
-
let the current time (unix time in seconds) to be t: scheduledEndTime(e) > t - 21600s (6 hours) AND scheduledStartTime(e) < t + 86400s (24 hours)
-
e is part of an active plan. An active plan is one computed by the planner, for events from the user’s calendar and the web interface, and confirmed by the user. One user can have no more than one active plan at any time. That means: whenever the user confirms a new plan, the previously confirmed plan will be discarded (even if there is zero overlapping), and all events in the previous plan will no longer be tracked.
- user_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- lowerbound
number(optional) Example: 1513725841the lower time bound within which events can be returned. Default is Current time minus 6 hours.
- upperbound
number(optional) Example: 1513728841the upper time bound within which events can be returned. Default is Current time plus 24 hours.
Headers
Content-Type: application/jsonBody
{
"updates": [
{
"activity_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"start_time": 1513725841,
"end_time": 1513728841,
"duration": 1513728250841
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"updates": {
"type": "array",
"description": "an array of activity timing update objects."
}
},
"required": [
"updates"
]
}Headers
Content-Type: application/jsonBody
[
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Update Estimated Event TimingPOST/mobility-planner/v1/execution/estimated_times{?user_id}
Update the estimated start time, end time, or duration for events. A consistency check will be executed after the update, and an error will be returned if the original plan is no longer valid.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
Headers
Content-Type: application/jsonBody
{
"updates": [
{
"activity_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"start_time": 1513725841,
"end_time": 1513728841,
"duration": 1513728250841
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"updates": {
"type": "array",
"description": "an array of activity timing update objects."
}
},
"required": [
"updates"
]
}Headers
Content-Type: application/jsonBody
[
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Update Actual Event TimingPOST/mobility-planner/v1/execution/actual_times{?user_id}
Update the actual start time or end time for events. A consistency check will be executed after the update, and an error will be returned if the original plan is no longer valid.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
Replan ¶
Headers
Content-Type: application/jsonBody
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
]
}Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Update Problem for ReplanningPUT/mobility-planner/v1/execution/problem{?user_id}
Update the current state of the user and update the user’s planning problem.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Get Problem For ReplanningGET/mobility-planner/v1/execution/problem{?user_id}
Get the current planning problem for the user.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
Headers
Content-Type: application/jsonBody
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
]
}Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Replan and Get SolutionPOST/mobility-planner/v1/execution/solution{?user_id}
Replan the current planning problem and get solution.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
The new plan for the problem.
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Update Plan SchedulePUT/mobility-planner/v1/execution/schedule{?user_id}
Computing a new schedule for an existing plan with activity updates. If the plan is no longer consistent, an error will be returned signaling that additional relaxations or replanning is required.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
The new plan for the problem.
Headers
Content-Type: application/jsonBody
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Update Plan RelaxationsPUT/mobility-planner/v1/execution/relaxations{?user_id}
Computing a new schedule for the plan by re-computing relaxations to the existing one with activity updates. An error will be returned if no feasible relaxations can be found.
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
Data Repository ¶
Transit ¶
Headers
x-api-key: [valid_api_key_goes_here]An array of transit stations found that meet the search requirements.
Headers
Content-Type: application/jsonBody
{
"results": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"stop_name": "Boylston - Outbound",
"stop_id": "70159",
"parent_station_id": "place-boyls",
"agency": {
"name": "MBTA",
"url": "http://http://www.mbta.com/",
"phone": "1-617-222-3200"
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "the set of transit stops."
}
},
"required": [
"results"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Stop LocationsGET/mobility-data-repository/v1/transit/stations{?lat,lng,radius}
This query will return a list of the nearest transit stops from a particular location, within the radius specified.
- lat
number(required) Example: 42.360954the latitude for location near which stops should be returned.
- lng
number(required) Example: -71.101483the longitude for location near which stops should be returned.
- radius
number(optional) Example: 1000the radius of search in meters.
Headers
x-api-key: [valid_api_key_goes_here]Headers
Content-Type: application/jsonBody
{
"results": [
{
"route_id": "Red",
"trip_id": "33225219",
"route_name": "Red Line",
"route_type": 1,
"direction_id": 1,
"trip_headsign": "Alewife",
"pre_dt": 1459276951,
"pre_arr": 1498053851,
"last_update": 1498053851
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "an array of arrival/departure predictions for the selected transit route."
}
},
"required": [
"results"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Arriving VehiclesGET/mobility-data-repository/v1/transit/arrivals{?stop_id,agency}
This query will return predicted arrivals and departures in the next hour for a particular transit stop.
- stop_id
string(required) Example: 70070GTFS-compatible id value for the station whose predictions should be returned.
- agency
string(required) Example: 'MBTA'The Id of the transit agency returned from the stop location endpoint.
Headers
x-api-key: [valid_api_key_goes_here]An array of vehicle positions for the transit routes.
Headers
Content-Type: application/jsonBody
[
{
"route_id": "Red",
"route_name": "Red Line",
"route_type": 0,
"direction_id": 0,
"trip_headsign": "Ashmont",
"latitude": 42.35524,
"longitude": -71.06018,
"bearing": 135
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Vehicle PositionsGET/mobility-data-repository/v1/transit/vehicles{?route_id,agency}
This query will return the positions of vehicles operating on a transit route.
- route_id
string(required) Example: 1345GTFS-compatible id value for the route whose vehicle positions should be returned.
- agency
string(required) Example: 'MBTA'The Id of the transit agency returned from the stop location endpoint.
Parking ¶
An array of parking locations found that meet the search requirements.
Headers
Content-Type: application/jsonBody
[
{
"listing_id": "Central-Parking",
"price": {
"hour": 10,
"day": 150
},
"max_duration": 7200,
"operator": {
"name": "Icon Parking",
"url": "http://www.iconparkingsystems.com/",
"phone": "877-727-5464"
},
"capacity": 200,
"available_spaces": 100,
"charger": false,
"street": false,
"indoor": false,
"rating": 4.5,
"reviews": 15,
"phone": "123-456-7890",
"photos": {
"desktop": "http://media.zipcar.com/images/model-image?model_id=155321731",
"mobile": "http://media.zipcar.com/images/model-image?model_id=155321731&mode=med",
"thumb": "http://media.zipcar.com/images/model-image?model_id=155321731&mode=thumb"
},
"hours": {
"weekday": "9am-4pm",
"weekend": "closed"
},
"instructions": "Enter from the building entrance"
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.LocationsGET/mobility-data-repository/v1/parking/locations{?lat,lng,radius,limit,street}
This query will return a list of the nearest parking from a particular location. Up to the specified count are returned, within the radius specified.
- lat
number(required) Example: 42.360954the latitude for location near which parking should be returned.
- lng
number(required) Example: -71.101483the longitude for location near which parking should be returned.
- radius
number(optional) Example: 1000the radius of search in meters.
- limit
number(optional) Example: 20the maximum number of results returned.
- street
boolea(optional) Example: falseif street parking should be included in the results.
An array of carshare locations found that meet the search requirements.
Headers
Content-Type: application/jsonBody
[
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"location_id": "96117",
"num_vehicles": 4,
"num_vehicles_available": 4,
"lowest_hourly_rate": 4,
"lowest_daily_rate": 40,
"operator": "MAVEN"
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.An array of carshare vehicles at the location.
Headers
Content-Type: application/jsonBody
[
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"vehicle_id": "1991624603",
"home_location_id": "123314",
"make": "Nissan",
"model": "Sentra",
"style": "Sedan",
"year": 2005,
"rate": {
"hour": 10,
"day": 150
},
"currency": "USD",
"actions": {
"book": "http://www.zipcar.com/?mobile_p=0&utm_source=partner&utm_medium=api&utm_campaign=partner_app&utm_content=version1"
},
"photos": {
"desktop": "http://media.zipcar.com/images/model-image?model_id=155321731",
"mobile": "http://media.zipcar.com/images/model-image?model_id=155321731&mode=med",
"thumb": "http://media.zipcar.com/images/model-image?model_id=155321731&mode=thumb"
},
"operator": "MAVEN"
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.An array of bikeshare stations found that meet the search requirements.
Headers
Content-Type: application/jsonBody
[
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"station_id": "3",
"num_bikes_available": 7,
"num_bikes_disabled": 7,
"num_docks_available": 8,
"num_docks_disabled": 8,
"system": "HUBWAY"
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.An array of rideshare service ETAs.
Headers
Content-Type: application/jsonBody
[
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no",
"product_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"time": 180,
"operator": "UBER"
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.An array of rideshare service estimates for the given location pairs.
Headers
Content-Type: application/jsonBody
[
{
"name": "uberX",
"product_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"distance": 6170,
"duration": 1080,
"low_estimate": 25,
"high_estimate": 33,
"currency": "USD",
"operator": "UBER"
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Profile ¶
Profile ¶
Headers
Content-Type: application/jsonBody
{
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
}
}
},
"required": [
"profile"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve basic profile dataGET/mobility-planner/demo/v2/preference/profile{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
Headers
Content-Type: application/jsonBody
{
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Update profile dataPOST/mobility-planner/demo/v2/preference/profile{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
Headers
Content-Type: application/jsonBody
{
"success": true,
"code": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "whether the delete was successful. Should only be false with a 200 response in staging when code no provided."
},
"code": {
"type": "string",
"description": "(staging only) returned in staging when a code was not submitted so that it can be provided in the following delete request."
}
},
"required": [
"success"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Delete profile dataDELETE/mobility-planner/demo/v2/preference/profile{?user_id,mode,everything,code}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
- everything
string(optional)whether to delete everything (defaults to true) if false, deletes quizzes, surveys, POI and context collections.
- code
string(optional)in staging (only) a numeric code may be required to perform the delete. If absent, will be present in the response for re-submit.
Bulk POI Status Request ¶
Headers
Content-Type: application/jsonBody
{
"pois": [
"Hello, world!"
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"pois": {
"type": "array",
"description": "a list of POI IDs."
}
},
"required": [
"pois"
]
}Headers
Content-Type: application/jsonBody
{
"results": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "saved status for the requested POIs"
}
},
"required": [
"results"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve status of saved POIsPOST/mobility-planner/demo/v2/preference/status/pois{?mode,user_id}
- mode
string(required)the mode (group) of the profile to be retrieved
- user_id
string(required)user ID
Bulk Context Status Request ¶
Headers
Content-Type: application/jsonBody
{
"contexts": [
"Hello, world!"
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"contexts": {
"type": "array",
"description": "a list of context IDs."
}
},
"required": [
"contexts"
]
}Headers
Content-Type: application/jsonBody
{
"results": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"results": {
"type": "array",
"description": "saved status for the requested contexts"
}
},
"required": [
"results"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve status of saved contextsPOST/mobility-planner/demo/v2/preference/status/contexts{?mode,user_id}
- mode
string(required)the mode (group) of the profile to be retrieved
- user_id
string(required)user ID
Get Matched Saved Locations ¶
Headers
Content-Type: application/jsonBody
{
"pois": [
"Hello, world!"
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"pois": {
"type": "array",
"description": "a list of POI IDs."
}
},
"required": [
"pois"
]
}Headers
Content-Type: application/jsonBody
{
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"locations": {
"type": "array",
"description": "details for the matched saved POIs"
}
},
"required": [
"locations"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve matched saved locations of provided IdsPOST/mobility-planner/demo/v2/preference/locations/matched{?mode,user_id}
- mode
string(required)the mode (group) of the profile to be retrieved
- user_id
boolean(required)the unique identifier for the user.
Get Profile Quiz Domain ¶
Headers
Content-Type: application/jsonBody
{
"surveys": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Favorite Cuisines",
"description": "What is your favorite dish?",
"image": {
"alt": "small",
"src": "http://image.io"
},
"theme": "TRAVEL",
"topic": "DINING",
"questions": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"survey_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Hello, world!",
"description": "What is your favorite dish?",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"category": "TEXT",
"type": "CATEGORY_TILES",
"answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}
],
"referenced_poi_ids": [
"Hello, world!"
],
"estimated_completion_time": 360
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"surveys": {
"type": "array",
"description": "a list of applicable quizzes."
}
},
"required": [
"surveys"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve all relevant quizzesGET/mobility-planner/demo/v2/survey/profile/domain{?mode,context,user_id,poi_subject_ids,survey_type,survey_question_type}
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- poi_subject_ids
string(optional) Example: 3323-4432-5456345743-f343245346,3323-4432-5456345743-f343245346comma-separated string of unique identifiers for the subject POIs. If provided, we will only return quizzes related to the POIs.
- mode
AllowedProblemMode(required)the planner mode for filtering applicable surveys.
- context
string(optional)the context used for filtering applicable surveys.
- survey_type
string(optional)the context used for filtering applicable surveys.
- survey_question_type
enum(optional)type of question the returned survey must contain
Choices:
CATEGORY_TILESCONTEXT_CATEGORY_TILESSUBJECT_POI_REVIEWSUBJECT_FILTER_REVIEWSUBJECT_YES_NOIMAGE_GRID
Get Profile Quiz By Id ¶
Headers
Content-Type: application/jsonBody
{
"survey": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Favorite Cuisines",
"description": "What is your favorite dish?",
"image": {
"alt": "small",
"src": "http://image.io"
},
"theme": "TRAVEL",
"topic": "DINING",
"questions": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"survey_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Hello, world!",
"description": "What is your favorite dish?",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"category": "TEXT",
"type": "CATEGORY_TILES",
"answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}
],
"referenced_poi_ids": [
"Hello, world!"
],
"estimated_completion_time": 360
},
"survey_status": {
"survey_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"user_status": "NOT_STARTED",
"positive_filter_selections": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"negative_filter_selections": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"questions_answered": [
"Hello, world!"
],
"provided_answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"survey": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "the unique identifier of the survey."
},
"name": {
"type": "string",
"description": "quiz name"
},
"description": {
"type": "string",
"description": "a brief description for the quiz."
},
"image": {
"type": "object",
"properties": {
"alt": {
"type": "string",
"description": "the name of the image"
},
"src": {
"type": "string",
"description": "the url of the image"
}
},
"required": [
"src"
],
"description": "url to quiz image"
},
"theme": {
"type": "string",
"enum": [
"TRAVEL",
"TRANSPORTATION",
"PAST_EXPERIENCE",
"IDENTITY"
],
"description": "quiz theme"
},
"topic": {
"type": "string",
"enum": [
"DINING",
"EXPERIENCE",
"ACCOMMODATION",
"PERSONALITY",
"FAVORITE",
"MEMORY",
"NOSTALGIA"
],
"description": "quiz topic"
},
"questions": {
"type": "array",
"description": "the list of questions in this survey."
},
"referenced_poi_ids": {
"type": "array",
"description": "the list of POI Ids referenced in this survey."
},
"estimated_completion_time": {
"type": "number",
"description": "quiz time in seconds"
}
},
"required": [
"id",
"name",
"description",
"image",
"theme",
"topic"
],
"description": "a quiz whose id matches the provided one."
},
"survey_status": {
"type": "object",
"properties": {
"survey_id": {
"type": "string",
"description": "the unique identifier of the survey."
},
"user_status": {
"type": "string",
"enum": [
"NOT_STARTED",
"STARTED",
"COMPLETED"
],
"description": "status of the survey for the user."
},
"positive_filter_selections": {
"type": "array",
"description": "positive filter selections"
},
"negative_filter_selections": {
"type": "array",
"description": "negative filter selections"
},
"questions_answered": {
"type": "array",
"description": "ids of questions answered"
},
"provided_answers": {
"type": "array",
"description": "the answer objects provided to the survey."
},
"saved_pois": {
"type": "array",
"description": "ids of POIs saved"
}
},
"required": [
"survey_id",
"user_status",
"positive_filter_selections",
"negative_filter_selections",
"questions_answered",
"provided_answers",
"saved_pois"
],
"description": "the status of the quiz."
}
},
"required": [
"survey",
"survey_status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve all relevant quizzesGET/mobility-planner/demo/v2/survey/profile/domain/{survey_id}/{?mode,context,user_id}
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- mode
AllowedProblemMode(required)the planner mode for filtering applicable surveys.
- context
string(optional)the context used for filtering applicable surveys.
- survey_id
string(optional) Example: 3323-4432-5456345743-f343245346the id for the survey.
Get Profile Quiz Recommendation ¶
Headers
Content-Type: application/jsonBody
{
"surveys": [
{
"survey": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Favorite Cuisines",
"description": "What is your favorite dish?",
"image": {
"alt": "small",
"src": "http://image.io"
},
"theme": "TRAVEL",
"topic": "DINING",
"questions": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"survey_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Hello, world!",
"description": "What is your favorite dish?",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"category": "TEXT",
"type": "CATEGORY_TILES",
"answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}
],
"referenced_poi_ids": [
"Hello, world!"
],
"estimated_completion_time": 360
},
"survey_status": {
"survey_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"user_status": "NOT_STARTED",
"positive_filter_selections": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"negative_filter_selections": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"questions_answered": [
"Hello, world!"
],
"provided_answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
]
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"surveys": {
"type": "array",
"description": "a list of applicable quizzes."
}
},
"required": [
"surveys"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve recommended quizzesGET/mobility-planner/demo/v2/survey/profile/recommendation{?mode,context,user_id,previous_survey_id,previous_survey_relationship,poi_subject_ids,survey_question_type}
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- previous_survey_id
string(optional) Example: 3323-4432-5456345743-f343245346a unique identifier for the quiz the user has just completed. If provided, it will be used to bias the selection of recommended quizzes.
- previous_survey_relationship
enum(optional)relationship of the recommendation to the quiz the user has just completed.
Choices:
SIMILARDIFFERENT- mode
AllowedProblemMode(required)the planner mode for filtering applicable surveys.
- context
string(optional)the context used for filtering applicable surveys.
- poi_subject_ids
string(optional) Example: 3323-4432-5456345743-f343245346,3323-4432-5456345743-f343245346comma-separated string of unique identifiers for the subject POI. If provided, we will only return quizzes related to the POIs.
- survey_question_type
enum(optional)type of question the returned survey must contain
Choices:
CATEGORY_TILESCONTEXT_CATEGORY_TILESSUBJECT_POI_REVIEWSUBJECT_FILTER_REVIEWSUBJECT_YES_NOIMAGE_GRID
Add Profile Quiz Response ¶
Headers
Content-Type: application/jsonBody
{
"survey_id": "123abc",
"answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"survey_id": {
"type": "string",
"description": "the id for the survey this response applies to."
},
"answers": {
"type": "array",
"description": "the list of answers in a survey response."
}
},
"required": [
"survey_id",
"answers"
]
}Headers
Content-Type: application/jsonBody
{
"status": "Hello, world!",
"survey_status": {
"survey_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"user_status": "NOT_STARTED",
"positive_filter_selections": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"negative_filter_selections": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"questions_answered": [
"Hello, world!"
],
"provided_answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "a status message"
},
"survey_status": {
"type": "object",
"properties": {
"survey_id": {
"type": "string",
"description": "the unique identifier of the survey."
},
"user_status": {
"type": "string",
"enum": [
"NOT_STARTED",
"STARTED",
"COMPLETED"
],
"description": "status of the survey for the user."
},
"positive_filter_selections": {
"type": "array",
"description": "positive filter selections"
},
"negative_filter_selections": {
"type": "array",
"description": "negative filter selections"
},
"questions_answered": {
"type": "array",
"description": "ids of questions answered"
},
"provided_answers": {
"type": "array",
"description": "the answer objects provided to the survey."
},
"saved_pois": {
"type": "array",
"description": "ids of POIs saved"
}
},
"required": [
"survey_id",
"user_status",
"positive_filter_selections",
"negative_filter_selections",
"questions_answered",
"provided_answers",
"saved_pois"
],
"description": "the status of the quiz after submitting this response."
}
},
"required": [
"status",
"survey_status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Add response to a surveyPOST/mobility-planner/demo/v2/survey/profile/response{?mode,user_id}
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- mode
AllowedProblemMode(required)the planner mode for filtering applicable surveys.
Delete Profile Quiz Responses ¶
Headers
Content-Type: application/jsonBody
{
"status": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "a status message"
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Delete all responses to a surveyDELETE/mobility-planner/demo/v2/survey/profile/responses/{survey_id}/{?mode,user_id}
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- mode
AllowedProblemMode(required)the planner mode for filtering applicable surveys.
- survey_id
string(required) Example: 3323-4432-5456345743-f343245346the id for the survey.
Get Profile Quiz Status By Id ¶
Headers
Content-Type: application/jsonBody
{
"status": {
"survey_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"user_status": "NOT_STARTED",
"positive_filter_selections": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"negative_filter_selections": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"questions_answered": [
"Hello, world!"
],
"provided_answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "object",
"properties": {
"survey_id": {
"type": "string",
"description": "the unique identifier of the survey."
},
"user_status": {
"type": "string",
"enum": [
"NOT_STARTED",
"STARTED",
"COMPLETED"
],
"description": "status of the survey for the user."
},
"positive_filter_selections": {
"type": "array",
"description": "positive filter selections"
},
"negative_filter_selections": {
"type": "array",
"description": "negative filter selections"
},
"questions_answered": {
"type": "array",
"description": "ids of questions answered"
},
"provided_answers": {
"type": "array",
"description": "the answer objects provided to the survey."
},
"saved_pois": {
"type": "array",
"description": "ids of POIs saved"
}
},
"required": [
"survey_id",
"user_status",
"positive_filter_selections",
"negative_filter_selections",
"questions_answered",
"provided_answers",
"saved_pois"
],
"description": "the status of a quiz."
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve Quiz StatusGET/mobility-planner/demo/v2/survey/profile/status/{survey_id}/{?mode,context,user_id}
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- mode
AllowedProblemMode(required)the planner mode for filtering applicable surveys.
- context
string(optional)the context used for filtering applicable surveys.
- survey_id
string(required) Example: 3323-4432-5456345743-f343245346the id for the survey.
Update Profile Quiz Status By Id ¶
Headers
Content-Type: application/jsonBody
{
"status": {
"survey_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"user_status": "NOT_STARTED",
"positive_filter_selections": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"negative_filter_selections": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"questions_answered": [
"Hello, world!"
],
"provided_answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "object",
"properties": {
"survey_id": {
"type": "string",
"description": "the unique identifier of the survey."
},
"user_status": {
"type": "string",
"enum": [
"NOT_STARTED",
"STARTED",
"COMPLETED"
],
"description": "status of the survey for the user."
},
"positive_filter_selections": {
"type": "array",
"description": "positive filter selections"
},
"negative_filter_selections": {
"type": "array",
"description": "negative filter selections"
},
"questions_answered": {
"type": "array",
"description": "ids of questions answered"
},
"provided_answers": {
"type": "array",
"description": "the answer objects provided to the survey."
},
"saved_pois": {
"type": "array",
"description": "ids of POIs saved"
}
},
"required": [
"survey_id",
"user_status",
"positive_filter_selections",
"negative_filter_selections",
"questions_answered",
"provided_answers",
"saved_pois"
],
"description": "the status of a quiz."
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Update Quiz StatusPOST/mobility-planner/demo/v2/survey/profile/status/{survey_id}/{?mode,user_id,status}
- user_id
string(required) Example: 3323-4432-5456345743-f343245346a unique identifier for the user.
- mode
AllowedProblemMode(required)the planner mode for filtering applicable surveys.
- status
enum(required)the status of the survey.
Choices:
COMPLETED- survey_id
string(required) Example: 3323-4432-5456345743-f343245346the id for the survey.
POI Collections ¶
Headers
Content-Type: application/jsonBody
{
"collections": [
{
"id": "e790d700-9f97-11ea-bb37-0242ac130002",
"name": "Favorite Restaurants",
"subtitle": "San Francisco, Tokyo, and 3 other cities",
"images": [
{
"alt": "small",
"src": "http://image.io"
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
],
"counts": [
{
"type": "SAVED",
"count": 32
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"collections": {
"type": "array",
"description": "collections for specified user"
}
},
"required": [
"collections"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve POI CollectionsGET/mobility-planner/demo/v2/preference/poi/collections{?user_id,mode,collection_id,problem_id}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
- collection_id
string(optional)the Id of the collection to be retrieved
- problem_id
string(optional)the Id of the relevant planning problem to be retrieved
Headers
Content-Type: application/jsonBody
{
"id": "Hello, world!",
"name": "Hello, world!",
"subtitle": "Hello, world!",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique UUID for the collection"
},
"name": {
"type": "string",
"description": "collection name"
},
"subtitle": {
"type": "string",
"description": "collection subtitle"
},
"pois": {
"type": "array",
"description": "list of pois in collection"
}
}
}Headers
Content-Type: application/jsonBody
{
"status": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "a status message"
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Create POI collectionPOST/mobility-planner/demo/v2/preference/poi/collections{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
Recommended POI Collections ¶
Headers
Content-Type: application/jsonBody
{
"collections": [
{
"id": "e790d700-9f97-11ea-bb37-0242ac130002",
"name": "Favorite Restaurants",
"subtitle": "San Francisco, Tokyo, and 3 other cities",
"images": [
{
"alt": "small",
"src": "http://image.io"
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
],
"counts": [
{
"type": "SAVED",
"count": 32
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"collections": {
"type": "array",
"description": "collections for specified user"
}
},
"required": [
"collections"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Get Recommended POI CollectionsGET/mobility-planner/demo/v2/preference/poi/collections/recommendation{?user_id,mode,collection_id}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
- collection_id
string(required)the Id of the reference collection for recommendation
Default POI Collection ¶
Headers
Content-Type: application/jsonBody
{
"result": {
"preview": {
"id": "e790d700-9f97-11ea-bb37-0242ac130002",
"name": "Favorite Restaurants",
"subtitle": "San Francisco, Tokyo, and 3 other cities",
"images": [
{
"alt": "small",
"src": "http://image.io"
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
],
"counts": [
{
"type": "SAVED",
"count": 32
}
]
},
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"result": {
"type": "object",
"properties": {
"preview": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "collection ID"
},
"name": {
"type": "string",
"description": "collection name"
},
"subtitle": {
"type": "string",
"description": "collection subtitle"
},
"images": {
"type": "array",
"description": "images of pois in collection"
},
"saved_pois": {
"type": "array",
"description": "abstract saved POI objects."
},
"counts": {
"type": "array",
"description": "number of special poi counts in collection"
}
},
"required": [
"id",
"name",
"subtitle",
"counts"
],
"description": "collection preview"
},
"pois": {
"type": "array",
"description": "list of pois and their status in collection"
}
},
"required": [
"preview",
"pois"
]
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve the default POI Collection savedGET/mobility-planner/demo/v2/preference/poi/default-collection{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
POI Collection ¶
Headers
Content-Type: application/jsonBody
{
"result": {
"preview": {
"id": "e790d700-9f97-11ea-bb37-0242ac130002",
"name": "Favorite Restaurants",
"subtitle": "San Francisco, Tokyo, and 3 other cities",
"images": [
{
"alt": "small",
"src": "http://image.io"
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
],
"counts": [
{
"type": "SAVED",
"count": 32
}
]
},
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"result": {
"type": "object",
"properties": {
"preview": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "collection ID"
},
"name": {
"type": "string",
"description": "collection name"
},
"subtitle": {
"type": "string",
"description": "collection subtitle"
},
"images": {
"type": "array",
"description": "images of pois in collection"
},
"saved_pois": {
"type": "array",
"description": "abstract saved POI objects."
},
"counts": {
"type": "array",
"description": "number of special poi counts in collection"
}
},
"required": [
"id",
"name",
"subtitle",
"counts"
],
"description": "collection preview"
},
"pois": {
"type": "array",
"description": "list of pois in collection"
}
},
"required": [
"preview",
"pois"
]
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve POI collectionGET/mobility-planner/demo/v2/preference/poi/collections/{collection_id}/{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
- collection_id
string(required)the id of the collection
Headers
Content-Type: application/jsonBody
{
"id": "Hello, world!",
"name": "Hello, world!",
"subtitle": "Hello, world!",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique UUID for the collection"
},
"name": {
"type": "string",
"description": "collection name"
},
"subtitle": {
"type": "string",
"description": "collection subtitle"
},
"pois": {
"type": "array",
"description": "list of pois in collection"
}
},
"required": [
"id"
]
}Headers
Content-Type: application/jsonBody
{
"status": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "a status message"
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Update POI collectionPUT/mobility-planner/demo/v2/preference/poi/collections/{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
Headers
Content-Type: application/jsonBody
{
"status": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "a status message"
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Delete collectionDELETE/mobility-planner/demo/v2/preference/poi/collections/{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
Context Collections ¶
Headers
Content-Type: application/jsonBody
{
"collections": [
{
"id": "e790d700-9f97-11ea-bb37-0242ac130002",
"name": "Favorite Restaurants",
"subtitle": "San Francisco, Tokyo, and 3 other cities",
"images": [
{
"alt": "small",
"src": "http://image.io"
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
],
"counts": [
{
"type": "SAVED",
"count": 32
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"collections": {
"type": "array",
"description": "saved contexts for specified user"
}
},
"required": [
"collections"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve saved context collectionsGET/mobility-planner/demo/v2/preference/context/collections{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
Headers
Content-Type: application/jsonBody
{
"id": "Hello, world!",
"name": "Hello, world!",
"subtitle": "Hello, world!",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique UUID for the collection"
},
"name": {
"type": "string",
"description": "collection title"
},
"subtitle": {
"type": "string",
"description": "collection subtitle"
},
"pois": {
"type": "array",
"description": "list of pois in collection"
}
},
"required": [
"id"
]
}Headers
Content-Type: application/jsonBody
{
"status": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "a status message"
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Save context collectionPOST/mobility-planner/demo/v2/preference/context/collections{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
Default Context Collection ¶
Headers
Content-Type: application/jsonBody
{
"result": {
"preview": {
"id": "e790d700-9f97-11ea-bb37-0242ac130002",
"name": "Favorite Restaurants",
"subtitle": "San Francisco, Tokyo, and 3 other cities",
"images": [
{
"alt": "small",
"src": "http://image.io"
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
],
"counts": [
{
"type": "SAVED",
"count": 32
}
]
},
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"result": {
"type": "object",
"properties": {
"preview": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "collection ID"
},
"name": {
"type": "string",
"description": "collection name"
},
"subtitle": {
"type": "string",
"description": "collection subtitle"
},
"images": {
"type": "array",
"description": "images of pois in collection"
},
"saved_pois": {
"type": "array",
"description": "abstract saved POI objects."
},
"counts": {
"type": "array",
"description": "number of special poi counts in collection"
}
},
"required": [
"id",
"name",
"subtitle",
"counts"
],
"description": "collection preview"
},
"contexts": {
"type": "array",
"description": "saved contexts for specified user"
}
},
"required": [
"preview",
"contexts"
]
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve the default context collection savedGET/mobility-planner/demo/v2/preference/context/default-collection{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
Context Collection ¶
Headers
Content-Type: application/jsonBody
{
"result": {
"preview": {
"id": "e790d700-9f97-11ea-bb37-0242ac130002",
"name": "Favorite Restaurants",
"subtitle": "San Francisco, Tokyo, and 3 other cities",
"images": [
{
"alt": "small",
"src": "http://image.io"
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
],
"counts": [
{
"type": "SAVED",
"count": 32
}
]
},
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"result": {
"type": "object",
"properties": {
"preview": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "collection ID"
},
"name": {
"type": "string",
"description": "collection name"
},
"subtitle": {
"type": "string",
"description": "collection subtitle"
},
"images": {
"type": "array",
"description": "images of pois in collection"
},
"saved_pois": {
"type": "array",
"description": "abstract saved POI objects."
},
"counts": {
"type": "array",
"description": "number of special poi counts in collection"
}
},
"required": [
"id",
"name",
"subtitle",
"counts"
],
"description": "collection preview"
},
"contexts": {
"type": "array",
"description": "saved contexts for specified user"
}
},
"required": [
"preview",
"contexts"
]
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve saved context collectionGET/mobility-planner/demo/v2/preference/context/collections/{collection_id}/{?user_id,mode}
- user_id
string(required)user ID
- collection_id
string(required)collection ID
- mode
string(required)the mode (group) of the profile to be retrieved
Headers
Content-Type: application/jsonBody
{
"status": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "a status message"
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Delete saved context collectionDELETE/mobility-planner/demo/v2/preference/context/collections/{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
Headers
Content-Type: application/jsonBody
{
"id": "Hello, world!",
"name": "Hello, world!",
"subtitle": "Hello, world!",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique UUID for the collection"
},
"name": {
"type": "string",
"description": "collection title"
},
"subtitle": {
"type": "string",
"description": "collection subtitle"
},
"pois": {
"type": "array",
"description": "list of pois in collection"
}
},
"required": [
"id"
]
}Headers
Content-Type: textBody
Context successfully saved.Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Update context collectionPUT/mobility-planner/demo/v2/preference/context/collections/{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
Filter Collections ¶
Headers
Content-Type: application/jsonBody
{
"collections": [
{
"id": "e790d700-9f97-11ea-bb37-0242ac130002",
"name": "When I Travel Solo",
"subtitle": "When I Travel Solo",
"themes": [
"Hello, world!"
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"collections": {
"type": "array",
"description": "saved preferences for specified user"
}
},
"required": [
"collections"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve filter collectionsGET/mobility-planner/demo/v2/preference/filter/collections{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
Filter Collection ¶
Headers
Content-Type: application/jsonBody
{
"result": {
"id": "e790d700-9f97-11ea-bb37-0242ac130002",
"name": "When I Travel Solo",
"subtitle": "When I Travel Solo",
"themes": [
"Hello, world!"
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"result": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "preference ID"
},
"name": {
"type": "string",
"description": "preference title"
},
"subtitle": {
"type": "string",
"description": "preference subtitle"
},
"themes": {
"type": "array",
"description": "preference themes"
},
"filters": {
"type": "array",
"description": "list of preference filters"
}
},
"required": [
"id",
"name",
"subtitle",
"themes",
"filters"
],
"description": "the filter collection object"
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve filter collectionGET/mobility-planner/demo/v2/preference/filter/collections/{collection_id}/{?user_id,collection_id,mode}
- user_id
string(required)user ID
- collection_id
string(required)collection ID
- mode
string(required)the mode (group) of the profile to be retrieved
Headers
Content-Type: application/jsonBody
{
"status": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "a status message"
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Delete filter collectionDELETE/mobility-planner/demo/v2/preference/filter/collections/{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
Headers
Content-Type: application/jsonBody
{
"id": "Hello, world!",
"name": "Hello, world!",
"subtitle": "Hello, world!",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique UUID for the collection"
},
"name": {
"type": "string",
"description": "collection title"
},
"subtitle": {
"type": "string",
"description": "collection subtitle"
},
"filters": {
"type": "array",
"description": "list of filters in collection"
}
},
"required": [
"id"
]
}Headers
Content-Type: application/jsonBody
{
"status": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "a status message"
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Update filter collectionPUT/mobility-planner/demo/v2/preference/filter/collections/{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) the profile to be retrieved
Trips ¶
Headers
Content-Type: application/jsonBody
{
"trips": [
{
"problem": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
},
"solution_response": {
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
},
"create_time": 12345567,
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"trip_contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"trip_context_specs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"start_timestamp": 12345567,
"end_timestamp": 12345567,
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"planned_counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"activity_specs": [
{
"category": "EXPERIENCE",
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"planned_counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"collection_specs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
}
}
]
}
]
}
],
"auto_saved": false,
"expired": false
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"trips": {
"type": "array",
"description": "trips for specified user"
}
},
"required": [
"trips"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve tripsGET/mobility-planner/demo/v2/trips{?user_id}
- user_id
string(required)user ID
Trip ¶
Headers
Content-Type: application/jsonBody
{
"trip": {
"problem": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
},
"solution_response": {
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
},
"create_time": 12345567,
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"trip_contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"trip_context_specs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"start_timestamp": 12345567,
"end_timestamp": 12345567,
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"planned_counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"activity_specs": [
{
"category": "EXPERIENCE",
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"planned_counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"collection_specs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
}
}
]
}
]
}
],
"auto_saved": false,
"expired": false
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"trip": {
"type": "object",
"properties": {
"problem": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
],
"description": "the problem object."
},
"solution_response": {
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
],
"description": "the solution object."
},
"create_time": {
"type": "number",
"description": "timestamp when the session was created."
},
"trip_id": {
"type": "string",
"description": "the unique identifier of the trip."
},
"trip_name": {
"type": "string",
"description": "a custom name for the trip."
},
"trip_start_time": {
"type": "number",
"description": "timestamp for the start of the trip."
},
"trip_end_time": {
"type": "number",
"description": "timestamp for the end of the trip."
},
"trip_context": {
"type": "string",
"description": "the context `(destination)` of the trip."
},
"trip_contexts": {
"type": "array",
"description": "a list of relevant context objects `(destinations)` of the trip."
},
"trip_context_specs": {
"type": "array",
"description": "a list of relevant context itinerary specifications of the trip."
},
"auto_saved": {
"type": "boolean",
"description": "if this trip was saved automatically by the client (and not by the end user)."
},
"expired": {
"type": "boolean",
"description": "if this trip has expired (ending in the past)."
}
},
"required": [
"problem",
"solution_response",
"trip_id"
]
}
},
"required": [
"trip"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve tripGET/mobility-planner/demo/v2/trips/{trip_id}/{?user_id}
- user_id
string(required)user ID
- trip_id
string(required)trip ID
Headers
Content-Type: application/jsonBody
{
"status": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "a status message"
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Delete tripDELETE/mobility-planner/demo/v2/trips/{trip_id}/{?user_id}
- user_id
string(required)user ID
- trip_id
string(required)trip ID
Headers
Content-Type: application/jsonBody
{
"problem": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"flexible_ordering": true,
"activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"profile": {
"user_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"user_type": "LEISURE_TRAVELLER",
"name": "Take Mobi",
"avatar": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"available_modes": [
"DRIVE"
],
"mode_preferences": [
{
"mode": "Hello, world!",
"included": true,
"preference": 1
}
],
"preferences": [
{
"category": "Hello, world!",
"included": true,
"plan_objective": "EXPLORATION",
"minimum_rating": 1,
"places": [
"Starbucks",
"Wagamama"
],
"types": [
"ASIAN",
"AMERICAN"
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
}
],
"price_tolerance": 1,
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_trips": [
{
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"problem_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"image_url": "http://takemobi.com/image.png"
}
],
"saved_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"characteristics": [
{
"name": "Relaxing",
"value": 0.8
}
],
"survey_answer_ids": [
"Hello, world!"
],
"survey_answer_explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
},
"planner_config": {
"ground_transportation": {
"pre_flight_buffer_time": 1,
"post_flight_buffer_time": 1,
"pre_train_buffer_time": 1,
"post_train_buffer_time": 1
}
},
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
],
"budget": {
"price": [
{
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
}
]
},
"traveler_information": {
"adults": 1,
"children": 1,
"child_ages": [
1
],
"infants": 1,
"infant_types": [
"Hello, world!"
],
"rooms": 1
},
"curation": {
"curates_trip": false,
"time_windows": [
"Hello, world!"
],
"context_configs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"included": false,
"activity_configs": [
{
"category": "EXPERIENCE",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
},
"collection_configs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"included": false,
"preference_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
}
],
"preference_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"lowerbound": 1519765200,
"upperbound": 1519765200
},
"objective_domain": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
],
"objective_selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs"
}
}
]
}
]
}
]
},
"recommendation": {
"included": false
},
"pace": {
"activity_duration_multiplier": 1,
"maximum_activities_per_day": 3,
"minimum_break_between_activities": 3600
},
"mode": "Hello, world!",
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
}
},
"solution_response": {
"session_id": "e790d700-9f97-11ea-bb37-0242ac130002",
"solution": {
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"problem_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
],
"dropped_activities": [
{
"id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"calendar_id": "a1111c8c",
"name": "Lunch",
"category": "FLIGHT",
"optional": true,
"candidate_information": {
"candidates": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"selection": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"search": {
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"earliest_departure_timestamp": 1519765200,
"latest_departure_timestamp": 1519765200,
"earliest_arrival_timestamp": 1519765200,
"latest_arrival_timestamp": 1519765200,
"max_connections": 10,
"preferred_carriers": [
"Hello, world!"
],
"max_duration": 3600
}
},
"allowed_incoming_modes": [
"DRIVE"
],
"allowed_outgoing_modes": [
"DRIVE"
],
"duration": 180,
"start_constraint_type": "AT",
"end_constraint_type": "AT",
"relaxable": true,
"explanation": {
"descriptions": [
"Hello, world!"
]
}
}
],
"locations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
}
],
"agents": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Take Mobi",
"origin": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"destination": {
"name": "Mary Chung",
"address": "464 Massachusetts Ave",
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"lat": 42.35031,
"lng": -71.0571,
"arrival_timestamp": 1519765200,
"departure_timestamp": 1519765200,
"relaxable": true,
"time_zone": "America/New_York",
"allowed_modes": [
"DRIVE"
]
},
"current": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"activities": [
"c2a21058-bb2f-46ff-9328-857c868a7fcc",
"df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"a1111c8c-c720-46c3-8534-2fcdd730040d"
]
}
]
},
"spec": {
"candidates_evaluated": 1200000,
"response_time": 890,
"total_revenue": 20,
"increased_revenue": 5,
"rental_car_revenue": 5,
"rideshare_revenue": 5,
"average_walking": 20,
"average_waiting": 5,
"endpoints_used": 2,
"subscription_level": "UNDER_SUBSCRIBED",
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"filter_spec": {
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"unsatisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"highlights": {
"title": "Destination Highlights",
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"activities": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"calendar_id": "35b2-4884",
"user_id": "a1111c8c",
"name": "Drive to 745 Atlantic Ave",
"description": "Drive to 745 Atlantic Ave",
"category": "Hello, world!",
"goal": "Hotel",
"explanations": [
"Hello, world!"
],
"has_alternatives": true,
"start_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"end_location": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"duration": 151,
"distance": 200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"types": [
"Hello, world!"
],
"tags": {
"positive_tags": [
"Hello, world!"
],
"negative_tags": [
"Hello, world!"
]
},
"mode": "WALK",
"polyline": "42.363937,-71.099098,42.364159,-71.09948,42.364296,-71.099701,42.364471,-71.100006,42.364674,-71.100334,42.365234,-71.10128",
"relaxation": {
"duration": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_lb_relaxed": true,
"is_ub_relaxed": false,
"original_lb": 360,
"relaxed_lb": 300,
"original_ub": 360,
"relaxed_ub": 400
},
"start": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
},
"end": {
"episode_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"is_earliest_relaxed": true,
"is_latest_relaxed": false,
"original_earliest": 1519763040,
"relaxed_earliest": 1519763020,
"original_latest": 1519763040,
"relaxed_latest": 1519763050
}
},
"source": {
"goal_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"candidate_id": "1644652a-19df-4a29-be03-38bb0fc34dbb",
"raw_content": "Hello, world!"
},
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"reservation": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"waiting": {
"duration": 1,
"start_time": 1,
"end_time": 1
},
"availability": [
{
"duration": 1,
"start_time": 1,
"end": 1
}
],
"spec": {
"curated": true,
"planner_scheduled": true,
"previously_booked": true,
"context": "Paris_France",
"satisfied_filters": [
"Hello, world!"
]
},
"booked": false
}
]
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"display": {
"display_whole_polyline": false,
"display_accommodations": true,
"display_flights": true,
"segments": [
{
"activity_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"to_location_id": "a1111c8c-c720-46c3-8534-2fcdd730040d",
"from_context: `Boston_Massachusetts`": "Hello, world!",
"to_context: `New York_USA`": "Hello, world!",
"scheduled_start_time": 1513728314,
"scheduled_end_time": 1513728314,
"display_accommodations": true,
"display_flights": true
}
]
},
"explanations": [
"Hello, world!"
],
"theme": "Budget"
},
"create_time": 12345567,
"trip_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"trip_name": "Family trip to Las Vegas",
"trip_start_time": 12345567,
"trip_end_time": 12345567,
"trip_context": "LONDON_UK",
"trip_contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
],
"trip_context_specs": [
{
"context_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"context_name": "Boston, Massachusetts",
"start_timestamp": 12345567,
"end_timestamp": 12345567,
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"planned_counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"activity_specs": [
{
"category": "EXPERIENCE",
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"planned_counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
},
"collection_specs": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Breakfast",
"description": "Breakfast POIs",
"pois": [
{
"poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"match": {
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
}
],
"counts": {
"liked": 1,
"highlighted": 2,
"matched": 3,
"recommended": 4,
"booked": 5
}
}
]
}
]
}
],
"auto_saved": false,
"expired": false
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"problem": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the problem object."
},
"origin": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the origin of the planning problem."
},
"destination": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the location."
},
"address": {
"type": "string",
"description": "the address of the location."
},
"id": {
"type": "string",
"description": "a unique identifier for the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"arrival_timestamp": {
"type": "number",
"description": "the desired arrival timestamp."
},
"departure_timestamp": {
"type": "number",
"description": "the desired departure timestamp."
},
"relaxable": {
"type": "boolean",
"description": "if the desired time of departure/arrival is relaxable."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"allowed_modes": {
"type": "array",
"description": "specify the allowed modes for leaving from the origin or arriving at the destination."
}
},
"required": [
"name",
"id",
"lat",
"lng",
"time_zone",
"allowed_modes"
],
"description": "the destination of the planning problem."
},
"current": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the current location of the user. Different from the origin and destination fields, no timing information is required for current location: the planner will use the current timestamp for it."
},
"flexible_ordering": {
"type": "boolean",
"description": "specifies if the ordering of goals can be modified by the planner."
},
"activities": {
"type": "array",
"description": "the set of goals the user wants to achieve."
},
"profile": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "the unique identifier for the user."
},
"user_type": {
"type": "string",
"enum": [
"LEISURE_TRAVELLER",
"BUSINESS_TRAVELLER"
],
"description": "the type of the user."
},
"name": {
"type": "string",
"description": "the name for the user."
},
"avatar": {
"type": "string",
"description": "the link to the avatar icon for the user."
},
"available_modes": {
"type": "array",
"description": "the set of travel modes available to the user."
},
"mode_preferences": {
"type": "array",
"description": "the set of user preferences over different modes of transportation."
},
"preferences": {
"type": "array",
"description": "the set of user preferences over different categories of activities."
},
"price_tolerance": {
"type": "number",
"description": "a value between 0.0 and 5.0 that describes the user's acceptance of high price POIs. 5.0 mean the use has the highest tolerance, while 0.0 means the user has low tolerance and is more sensitive to price."
},
"saved_pois": {
"type": "array",
"description": "the list of abstract POI objects the user has selected and saved."
},
"saved_trips": {
"type": "array",
"description": "the list of abstract trip objects the user has selected and saved."
},
"saved_filters": {
"type": "array",
"description": "the list of filters the user has selected and saved."
},
"characteristics": {
"type": "array",
"description": "the list of characteristics detected for the user."
},
"survey_answer_ids": {
"type": "array",
"description": "the list of unique identifiers indicating the answers the user has provided to our survey questions."
},
"survey_answer_explanations": {
"type": "array",
"description": "the list of explanations the user has provided for prior survey answers and/or POIs."
}
},
"description": "the profile of the user."
},
"planner_config": {
"type": "object",
"properties": {
"ground_transportation": {
"type": "object",
"properties": {
"pre_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the airport and before a flight."
},
"post_flight_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the airport and after a flight."
},
"pre_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated after dropoff at the rail station and before a train."
},
"post_train_buffer_time": {
"type": "number",
"description": "an integer describing the buffer time (in seconds) that should be allocated before pickup at the rail station and after a train."
}
},
"description": "the category of configurations for ground transportation decisions."
}
},
"description": "the configuration of the planner in creating solutions for the request."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the planning problem"
},
"budget": {
"type": "object",
"properties": {
"price": {
"type": "array",
"description": "the upper bound of spending of each currency for all activities. Only currencies that have a limit (e.g. AMEX_POINT) may need to be specified."
}
},
"required": [
"price"
],
"description": "the budget that is available when solving for this problem."
},
"traveler_information": {
"type": "object",
"properties": {
"adults": {
"type": "number",
"description": "the number of adults."
},
"children": {
"type": "number",
"description": "the number of children."
},
"child_ages": {
"type": "array",
"description": "an array of child ages."
},
"infants": {
"type": "number",
"description": "the number of infants."
},
"infant_types": {
"type": "array",
"description": "an array of infant types."
},
"rooms": {
"type": "number",
"description": "the number of rooms."
}
},
"required": [
"adults",
"rooms"
],
"description": "the traveler information."
},
"curation": {
"type": "object",
"properties": {
"curates_trip": {
"type": "boolean",
"description": "specifies if curated activities could be included in the itinerary."
},
"time_windows": {
"type": "array",
"description": "specifies a set of time windows in whiche curated activities could be included in the itinerary."
},
"context_configs": {
"type": "array",
"description": "specifies the curated activities for each activity category."
}
},
"required": [
"curates_trip",
"time_windows"
],
"description": "specifies if and when curated activities should be included in the itinerary."
},
"recommendation": {
"type": "object",
"properties": {
"included": {
"type": "boolean",
"description": "specifies if recommended activities could be included in the itinerary."
}
},
"required": [
"included"
],
"description": "specifies if recommended activities should be included in the itinerary."
},
"pace": {
"type": "object",
"properties": {
"activity_duration_multiplier": {
"type": "number",
"description": "specifies the multiplier to apply to the duration of activities."
},
"maximum_activities_per_day": {
"type": "number",
"description": "specifies the maximum number of experience activities in each day of the trip."
},
"minimum_break_between_activities": {
"type": "number",
"description": "specifies the minimum break time (in seconds) between any experience activities in the trip."
}
},
"description": "specifies the pace of the ."
},
"mode": {
"type": "string",
"enum": [
"MOBI_AGENT"
],
"description": "the planner mode used for this problem."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "the requested solution display configuration for this problem."
}
},
"required": [
"id",
"origin",
"destination",
"flexible_ordering",
"activities"
],
"description": "the problem object."
},
"solution_response": {
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "unique identifier for the user session."
},
"solution": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier for the solution object."
},
"problem_id": {
"type": "string",
"description": "unique identifier for the problem object of this solution."
},
"price": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"ACCOMMODATION",
"SPA",
"DINING",
"EXPERIENCE",
"ATTRACTION",
"SHOPPING",
"ENTERTAINMENT",
"TOUR",
"EVENT",
"PARK",
"RENTALCAR",
"FLIGHT",
"CHARACTER",
"RAIL",
"PARKING",
"THINGSTODO",
"CONTEXT",
"TRIPPURPOSE"
],
"description": "the category of this price object."
},
"amount": {
"type": "number",
"description": "the amount of the price."
},
"min_amount": {
"type": "number",
"description": "the minimum amount of the price."
},
"max_amount": {
"type": "number",
"description": "the maximum amount of the price."
},
"currency": {
"type": "string",
"enum": [
"USD",
"JPY",
"CNY",
"EUR",
"AUD",
"HKD",
"GBP",
"CAD",
"AMEX_POINT"
],
"description": "the currency code for the price."
}
},
"required": [
"amount",
"min_amount",
"max_amount",
"currency"
],
"description": "the monetary cost of all activities in this solution object. In other words, this is the amount the user will spend on the activities in the plan."
},
"activities": {
"type": "array",
"description": "contains an array of activities enabled by this solution."
},
"dropped_activities": {
"type": "array",
"description": "contains an array of activities requested by the user but not included in this solution."
},
"locations": {
"type": "array",
"description": "contains an array of locations used by this solution."
},
"agents": {
"type": "array",
"description": "the set of agents involved in the plan, and the Ids of their activities. Only ac"
}
},
"required": [
"id",
"problem_id",
"price",
"activities",
"dropped_activities",
"locations"
],
"description": "the solution object for the problem."
},
"spec": {
"type": "object",
"properties": {
"candidates_evaluated": {
"type": "number",
"description": "the number of candidate solutions evaluated during planning."
},
"response_time": {
"type": "number",
"description": "the computation time for the solution, in milliseconds."
},
"total_revenue": {
"type": "number",
"description": "the total revenue for the plan in this solution, in dollars."
},
"increased_revenue": {
"type": "number",
"description": "the increased revenue for the plan in this solution, in dollars."
},
"rental_car_revenue": {
"type": "number",
"description": "the rental car revenue for the plan in this solution, in dollars."
},
"rideshare_revenue": {
"type": "number",
"description": "the rideshare transportation revenue for the plan in this solution, in dollars, if all travel segments are in rideshare."
},
"average_walking": {
"type": "number",
"description": "the average walking time per POI, in minutes."
},
"average_waiting": {
"type": "number",
"description": "the average waiting time per POI, in minutes."
},
"endpoints_used": {
"type": "number",
"description": "the number of endpoints used to support this planning process."
},
"subscription_level": {
"type": "string",
"enum": [
"UNDER_SUBSCRIBED",
"NORMAL",
"OVER_SUBSCRIBED"
],
"description": "the level of subscription of the return itinerary."
},
"contexts": {
"type": "array",
"description": "the list of trip context objects from the request."
},
"filter_spec": {
"type": "object",
"properties": {
"satisfied_filters": {
"type": "array",
"description": "the list of satisfied filter objects."
},
"unsatisfied_filters": {
"type": "array",
"description": "the list of unfatisfied filter objects."
}
},
"description": "specification on satisfied and unsatisfied filters."
}
},
"required": [
"response_time",
"total_revenue",
"increased_revenue",
"rental_car_revenue",
"rideshare_revenue",
"average_walking",
"average_waiting",
"endpoints_used",
"contexts",
"filter_spec"
],
"description": "the specifications of the solution and the planning process."
},
"highlights": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "a high level text description for the solution highlights."
},
"pois": {
"type": "array",
"description": "the list of POI highlights."
},
"activities": {
"type": "array",
"description": "the list of activity highlights in the itinerary."
}
},
"description": "the highlights of the solution."
},
"destination": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "a unique identifier for the location. It is location dependent, in that if the same location appears multiple times in the problem, the id will be the same."
},
"name": {
"type": "string",
"description": "the name of the location."
},
"display_name": {
"type": "string",
"description": "the display name of the location."
},
"lat": {
"type": "number",
"description": "the latitude of the location."
},
"lng": {
"type": "number",
"description": "the longitude of the location."
},
"time_zone": {
"type": "string",
"description": "contains the time zone of this location. The value is the name of the time zone as defined in the [IANA Time Zone Database](http://www.iana.org/time-zones)."
},
"address_line1": {
"type": "string",
"description": "first line of the address for the location."
},
"address_line2": {
"type": "string",
"description": "second line of the address for the location."
},
"city": {
"type": "string",
"description": "city of the address for the location."
},
"state_province": {
"type": "string",
"description": "state or province for the location."
},
"postal_code": {
"type": "string",
"description": "postal code for the location."
},
"country": {
"type": "string",
"description": "country of the location."
},
"photo": {
"type": "string",
"description": "a link to a representative image of the location."
}
},
"required": [
"id",
"name",
"display_name",
"lat",
"lng",
"time_zone"
],
"description": "the representative location of this plan."
},
"display": {
"type": "object",
"properties": {
"display_whole_polyline": {
"type": "boolean",
"description": "if true, the polyline for the entire solution is recommended to be displayed in the background when each day's plan is being presented."
},
"display_accommodations": {
"type": "boolean",
"description": "if true, display the accommodation options in the solution."
},
"display_flights": {
"type": "boolean",
"description": "if true, display the flight options in the solution."
},
"segments": {
"type": "array",
"description": "segment by segment display options."
}
},
"description": "any recommended configurations for displaying this solutions."
},
"explanations": {
"type": "array",
"description": "explanations for why no solution could be found by the planner."
},
"theme": {
"type": "string",
"description": "a descriptive theme for the solution."
}
},
"required": [
"session_id"
],
"description": "the solution object."
},
"create_time": {
"type": "number",
"description": "timestamp when the session was created."
},
"trip_id": {
"type": "string",
"description": "the unique identifier of the trip."
},
"trip_name": {
"type": "string",
"description": "a custom name for the trip."
},
"trip_start_time": {
"type": "number",
"description": "timestamp for the start of the trip."
},
"trip_end_time": {
"type": "number",
"description": "timestamp for the end of the trip."
},
"trip_context": {
"type": "string",
"description": "the context `(destination)` of the trip."
},
"trip_contexts": {
"type": "array",
"description": "a list of relevant context objects `(destinations)` of the trip."
},
"trip_context_specs": {
"type": "array",
"description": "a list of relevant context itinerary specifications of the trip."
},
"auto_saved": {
"type": "boolean",
"description": "if this trip was saved automatically by the client (and not by the end user)."
},
"expired": {
"type": "boolean",
"description": "if this trip has expired (ending in the past)."
}
},
"required": [
"problem",
"solution_response",
"trip_id"
]
}Headers
Content-Type: application/jsonBody
{
"status": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "a status message"
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Update tripPUT/mobility-planner/demo/v2/trips/{trip_id}/{?user_id}
- user_id
string(required)user ID
- trip_id
string(required)trip ID
Saved POIs ¶
Headers
Content-Type: application/jsonBody
{
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"pois": {
"type": "array",
"description": "saved POIs for specified user"
}
},
"required": [
"pois"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve saved POIsGET/mobility-planner/demo/v2/preference/pois{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
POI Management ¶
Headers
Content-Type: application/jsonBody
{
"result": {
"preview": {
"id": "e790d700-9f97-11ea-bb37-0242ac130002",
"name": "Favorite Restaurants",
"subtitle": "San Francisco, Tokyo, and 3 other cities",
"images": [
{
"alt": "small",
"src": "http://image.io"
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
],
"counts": [
{
"type": "SAVED",
"count": 32
}
]
},
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"result": {
"type": "object",
"properties": {
"preview": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "collection ID"
},
"name": {
"type": "string",
"description": "collection name"
},
"subtitle": {
"type": "string",
"description": "collection subtitle"
},
"images": {
"type": "array",
"description": "images of pois in collection"
},
"saved_pois": {
"type": "array",
"description": "abstract saved POI objects."
},
"counts": {
"type": "array",
"description": "number of special poi counts in collection"
}
},
"required": [
"id",
"name",
"subtitle",
"counts"
],
"description": "collection preview"
},
"pois": {
"type": "array",
"description": "list of pois in collection"
}
},
"required": [
"preview",
"pois"
]
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Save POIPUT/mobility-planner/demo/v2/preference/pois/{poi_id}/{?user_id,collection_id,mode,preference,visited,profile_status,trip_status}
Saves POI to a collection. If the user is in a context where a collection is specified, include the collection ID to save the POI to. Otherwise, the POI will be saved to a default collection.
- user_id
string(required)user ID
- collection_id
string(optional)ID of the collection to save the POI to. If not provided, a default collection will be created for the user.
- poi_id
string(required)ID of the POI
- mode
string(required)the mode (group) of the profile to be retrieved
- preference
enum(optional)the mode (group) of the profile to be retrieved
Choices:
MAYBEINTERESTEDDEFINITELY- visited
boolean(optional) Example: falseif the user has visited this POI
- profile_status
enum(optional)whether this POI is of particular importance in the profile collection
Choices:
LIKEDHIGHLIGHTEDNONE- trip_status
enum(optional)whether this POI is of particular importance in a trip collection
Choices:
LIKEDHIGHLIGHTEDNONE
Headers
Content-Type: application/jsonBody
{
"result": {
"preview": {
"id": "e790d700-9f97-11ea-bb37-0242ac130002",
"name": "Favorite Restaurants",
"subtitle": "San Francisco, Tokyo, and 3 other cities",
"images": [
{
"alt": "small",
"src": "http://image.io"
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
],
"counts": [
{
"type": "SAVED",
"count": 32
}
]
},
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"result": {
"type": "object",
"properties": {
"preview": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "collection ID"
},
"name": {
"type": "string",
"description": "collection name"
},
"subtitle": {
"type": "string",
"description": "collection subtitle"
},
"images": {
"type": "array",
"description": "images of pois in collection"
},
"saved_pois": {
"type": "array",
"description": "abstract saved POI objects."
},
"counts": {
"type": "array",
"description": "number of special poi counts in collection"
}
},
"required": [
"id",
"name",
"subtitle",
"counts"
],
"description": "collection preview"
},
"pois": {
"type": "array",
"description": "list of pois in collection"
}
},
"required": [
"preview",
"pois"
]
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Remove POI from collectionDELETE/mobility-planner/demo/v2/preference/pois/{poi_id}/{?user_id,collection_id,mode}
- user_id
string(required)user ID
- collection_id
string(required)ID of the collection to remove the POI from
- poi_id
string(required)ID of the POI
- mode
string(required)the mode (group) of the profile to be retrieved
Context Management ¶
Headers
Content-Type: application/jsonBody
{
"result": {
"preview": {
"id": "e790d700-9f97-11ea-bb37-0242ac130002",
"name": "Favorite Restaurants",
"subtitle": "San Francisco, Tokyo, and 3 other cities",
"images": [
{
"alt": "small",
"src": "http://image.io"
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
],
"counts": [
{
"type": "SAVED",
"count": 32
}
]
},
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"result": {
"type": "object",
"properties": {
"preview": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "collection ID"
},
"name": {
"type": "string",
"description": "collection name"
},
"subtitle": {
"type": "string",
"description": "collection subtitle"
},
"images": {
"type": "array",
"description": "images of pois in collection"
},
"saved_pois": {
"type": "array",
"description": "abstract saved POI objects."
},
"counts": {
"type": "array",
"description": "number of special poi counts in collection"
}
},
"required": [
"id",
"name",
"subtitle",
"counts"
],
"description": "collection preview"
},
"contexts": {
"type": "array",
"description": "list of pois in collection"
}
},
"required": [
"preview",
"contexts"
]
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Save ContextPUT/mobility-planner/demo/v2/preference/contexts/{context_id}/{?user_id,collection_id,mode,preference,visited,profile_status,trip_status}
Saves context to a collection. If the user is in a context where a collection is specified, include the collection ID to save the context to. Otherwise, the context will be saved to a default collection.
- user_id
string(required)user ID
- collection_id
string(optional)ID of the collection to save the POI to. If not provided, a default collection will be created for the user.
- context_id
string(required)ID of the context
- mode
string(required)the mode (group) of the profile to be retrieved
- preference
enum(required)the mode (group) of the profile to be retrieved
Choices:
MAYBEINTERESTEDDEFINITELY- visited
boolean(optional) Example: falseif the user has visited this context
- profile_status
enum(optional)whether this POI is of particular importance in the profile collection
Choices:
LIKEDHIGHLIGHTEDNONE- trip_status
enum(optional)whether this POI is of particular importance in a trip collection
Choices:
LIKEDHIGHLIGHTEDNONE
Headers
Content-Type: application/jsonBody
{
"result": {
"preview": {
"id": "e790d700-9f97-11ea-bb37-0242ac130002",
"name": "Favorite Restaurants",
"subtitle": "San Francisco, Tokyo, and 3 other cities",
"images": [
{
"alt": "small",
"src": "http://image.io"
}
],
"saved_pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
}
],
"counts": [
{
"type": "SAVED",
"count": 32
}
]
},
"contexts": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
}
]
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"result": {
"type": "object",
"properties": {
"preview": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "collection ID"
},
"name": {
"type": "string",
"description": "collection name"
},
"subtitle": {
"type": "string",
"description": "collection subtitle"
},
"images": {
"type": "array",
"description": "images of pois in collection"
},
"saved_pois": {
"type": "array",
"description": "abstract saved POI objects."
},
"counts": {
"type": "array",
"description": "number of special poi counts in collection"
}
},
"required": [
"id",
"name",
"subtitle",
"counts"
],
"description": "collection preview"
},
"contexts": {
"type": "array",
"description": "list of pois in collection"
}
},
"required": [
"preview",
"contexts"
]
}
}
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Remove Context from collectionDELETE/mobility-planner/demo/v2/preference/contexts/{context_id}/{?user_id,collection_id,mode}
- user_id
string(required)user ID
- collection_id
string(required)ID of the collection to remove the POI from
- context_id
string(required)ID of the context
- mode
string(required)the mode (group) of the profile to be retrieved
Visits ¶
Headers
Content-Type: application/jsonBody
{
"status": "Hello, world!"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "a status message"
}
},
"required": [
"status"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Update POI Visit StatusPUT/mobility-planner/demo/v2/preference/visit/pois/{poi_id}/{?user_id,mode,visited}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
- visited
boolean(required) Example: falseif the user has visited this POI
- poi_id
string(required)ID of the POI
Relevant Locations ¶
Headers
Content-Type: application/jsonBody
{
"locations": [
{
"type": "HOME",
"category": "ACCOMMODATION",
"images": [
{
"alt": "small",
"src": "http://image.io"
}
],
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"poi_id": "Hello, world!",
"survey_ids": [
"Hello, world!"
],
"trip_id": "Hello, world!"
}
],
"surveys": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Favorite Cuisines",
"description": "What is your favorite dish?",
"image": {
"alt": "small",
"src": "http://image.io"
},
"theme": "TRAVEL",
"topic": "DINING",
"questions": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"survey_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Hello, world!",
"description": "What is your favorite dish?",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"category": "TEXT",
"type": "CATEGORY_TILES",
"answers": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"question_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"subject_type": "POI",
"subject_poi": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"index": 12,
"name": "Cambridge",
"price": {
"category": "Hello, world!",
"amount": 360,
"min_amount": 300,
"max_amount": 4000,
"currency": "USD"
},
"preferred": false,
"preference": "MAYBE",
"images": {
"small": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%402x.png",
"medium": "https://s3.amazonaws.com/takemobi.mobileapp/icons/Transit/Generic/SmartMap/GenericTransitIconSmall%403x.png"
},
"location": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"start_timestamp": 1519765200,
"end_timestamp": 1519765200,
"origin": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"destination": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mary Chung, 464 Massachusetts Ave",
"display_name": "Mary Chung, 464 Massachusetts Ave",
"lat": 42.35031,
"lng": -71.0571,
"time_zone": "America/New_York",
"address_line1": "464 Massachusetts Ave",
"address_line2": "Unit 233",
"city": "Cambridge",
"state_province": "Massachusetts",
"postal_code": "02139",
"country": "USA",
"photo": "https://lh5.googleusercontent.com/p/AF1QipMckTTCJlA7LhbwA8AgJmCCK-P4ta0SP5uqVnWJ=w408-h306-k-no"
},
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"transportation": {
"segments": [
{
"type": "FLIGHT",
"origin": "BOS",
"destination": "SFO",
"departure_timestamp": 1519765200,
"arrival_timestamp": 1519765200,
"carrier_code": "UA",
"number": "UA"
}
]
},
"recommendations": [
{
"category": "FOR_YOU",
"content": "#2 of 1234 restaurants in New York"
}
],
"hours": [
{
"date": "2021-05-31",
"day_name": "Saturday",
"times": [
{
"open_time": "17:00",
"close_time": "21:00"
}
]
}
],
"match": {
"context_name": "Boston_Massachusetts",
"satisfied_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"good_match_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"known_for_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
},
"subject_poi_status": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"preference": "MAYBE",
"visited": false,
"profile_status": "LIKED",
"trip_status": "LIKED"
},
"subject_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"subject_context_filter": {
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
},
"name": "Orange Chicken",
"description": "A Chinese dish",
"categories": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"context_filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"pois": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"name": "Mcdonalds",
"image_url": "http://takemobi.com/image.png"
}
],
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
],
"explanations": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"answer_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"poi_id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"description": "What was memorable?",
"filters": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
],
"reactions": [
"Hello, world!"
],
"characteristics": [
{
"id": "df54ee42-35b2-4884-a6a8-e8f935b98bd5",
"category": "Hello, world!",
"source": "User",
"name": "Chinese",
"parent": "Cuisine",
"image": "http://takemobi.com/image.png"
}
]
}
]
}
],
"referenced_poi_ids": [
"Hello, world!"
],
"estimated_completion_time": 360
}
]
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"locations": {
"type": "array",
"description": "saved locations for the specified user"
},
"surveys": {
"type": "array",
"description": "surveys relevant for the saved locations"
}
},
"required": [
"locations",
"surveys"
]
}Body
Bad Request.Body
Unauthorized.Body
Internal Server Error.Retrieve Relevant Locations for UserGET/mobility-planner/demo/v2/preference/locations{?user_id,mode}
- user_id
string(required)user ID
- mode
string(required)the mode (group) of the profile to be retrieved
Generated by aglio on 27 May 2023